From: Jesse Gross Date: Fri, 19 Nov 2010 21:55:18 +0000 (-0800) Subject: datapath: Remove share check for internal devices. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d2160142e59448147c1c929681eaf312968418;p=openvswitch datapath: Remove share check for internal devices. When transmitting on a device, dev_hard_start_xmit() always provides a private clone. The skb_share_check() in internal_dev_xmit() is therefore unnecessary, so remove it. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index 52bd6ce6..9079295b 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -73,13 +73,6 @@ static int internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) struct internal_dev *internal_dev = internal_dev_priv(netdev); struct vport *vport = rcu_dereference(internal_dev->vport); - /* We need our own clone. */ - skb = skb_share_check(skb, GFP_ATOMIC); - if (unlikely(!skb)) { - vport_record_error(vport, VPORT_E_RX_DROPPED); - return 0; - } - skb_reset_mac_header(skb); compute_ip_summed(skb, true); OVS_CB(skb)->flow = NULL;