Commit 6cddded4 authored by David S. Miller's avatar David S. Miller

Merge branch 'fixes' of...

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jesse/openvswitch into openvswitch

Jesse Gross says:

====================
One bug fix for net/3.8 for a long standing problem that was reported a few
times recently.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 0c35565b d9d59089
...@@ -35,10 +35,11 @@ ...@@ -35,10 +35,11 @@
/* Must be called with rcu_read_lock. */ /* Must be called with rcu_read_lock. */
static void netdev_port_receive(struct vport *vport, struct sk_buff *skb) static void netdev_port_receive(struct vport *vport, struct sk_buff *skb)
{ {
if (unlikely(!vport)) { if (unlikely(!vport))
kfree_skb(skb); goto error;
return;
} if (unlikely(skb_warn_if_lro(skb)))
goto error;
/* Make our own copy of the packet. Otherwise we will mangle the /* Make our own copy of the packet. Otherwise we will mangle the
* packet for anyone who came before us (e.g. tcpdump via AF_PACKET). * packet for anyone who came before us (e.g. tcpdump via AF_PACKET).
...@@ -50,6 +51,10 @@ static void netdev_port_receive(struct vport *vport, struct sk_buff *skb) ...@@ -50,6 +51,10 @@ static void netdev_port_receive(struct vport *vport, struct sk_buff *skb)
skb_push(skb, ETH_HLEN); skb_push(skb, ETH_HLEN);
ovs_vport_receive(vport, skb); ovs_vport_receive(vport, skb);
return;
error:
kfree_skb(skb);
} }
/* Called with rcu_read_lock and bottom-halves disabled. */ /* Called with rcu_read_lock and bottom-halves disabled. */
...@@ -169,9 +174,6 @@ static int netdev_send(struct vport *vport, struct sk_buff *skb) ...@@ -169,9 +174,6 @@ static int netdev_send(struct vport *vport, struct sk_buff *skb)
goto error; goto error;
} }
if (unlikely(skb_warn_if_lro(skb)))
goto error;
skb->dev = netdev_vport->dev; skb->dev = netdev_vport->dev;
len = skb->len; len = skb->len;
dev_queue_xmit(skb); dev_queue_xmit(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment