Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/team/team.c drivers/net/usb/qmi_wwan.c net/batman-adv/bat_iv_ogm.c net/ipv4/fib_frontend.c net/ipv4/route.c net/l2tp/l2tp_netlink.c The team, fib_frontend, route, and l2tp_netlink conflicts were simply overlapping changes. qmi_wwan and bat_iv_ogm were of the "use HEAD" variety. With help from Antonio Quartulli. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -3150,6 +3150,17 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
/* On PCI/PCI-X HW, if packet size is less than ETH_ZLEN,
|
||||
* packets may get corrupted during padding by HW.
|
||||
* To WA this issue, pad all small packets manually.
|
||||
*/
|
||||
if (skb->len < ETH_ZLEN) {
|
||||
if (skb_pad(skb, ETH_ZLEN - skb->len))
|
||||
return NETDEV_TX_OK;
|
||||
skb->len = ETH_ZLEN;
|
||||
skb_set_tail_pointer(skb, ETH_ZLEN);
|
||||
}
|
||||
|
||||
mss = skb_shinfo(skb)->gso_size;
|
||||
/* The controller does a simple calculation to
|
||||
* make sure there is enough room in the FIFO before
|
||||
|
Reference in New Issue
Block a user