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 <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
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;