[ovs-dev] [PATCH 3/5] datapath: Move generic tunnel functions to lisp module.

Jesse Gross jesse at nicira.com
Wed Aug 14 00:44:51 UTC 2013


On Mon, Jul 29, 2013 at 3:47 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
> diff --git a/datapath/vport-lisp.c b/datapath/vport-lisp.c
> index 6027a16..6e37b2f 100644
> --- a/datapath/vport-lisp.c
> +++ b/datapath/vport-lisp.c
> +static struct sk_buff *handle_offloads(struct sk_buff *skb)
> +{
> +       int err;
> +
> +       forward_ip_summed(skb, true);
> +
> +       if (skb_is_gso(skb)) {
> +               struct sk_buff *nskb;
> +
> +               nskb = __skb_gso_segment(skb, 0, false);
> +               if (IS_ERR(nskb)) {
> +                       err = PTR_ERR(nskb);
> +                       goto error;
> +               }
> +
> +               consume_skb(skb);
> +               skb = nskb;

I realize that this patch was sent out before support for Linux 3.9
was committed but we shouldn't forget to do the skb->cb replication
here as well.

Acked-by: Jesse Gross <jesse at nicira.com>
X-CudaMail-Whitelist-To: dev at openvswitch.org



More information about the dev mailing list