Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340396
b: refs/heads/master
c: ea5ceea
h: refs/heads/master
v: v3
  • Loading branch information
Tushar Dave authored and Jeff Kirsher committed Oct 19, 2012
1 parent 370db23 commit 09c6664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 374c65d6664a498c3997616161894bd9f55fab54
refs/heads/master: ea5ceeabf5621ed36d24e6741b45cfd1e1fce11b
5 changes: 3 additions & 2 deletions trunk/drivers/net/ethernet/intel/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4467,10 +4467,11 @@ static netdev_tx_t igb_xmit_frame(struct sk_buff *skb,
* The minimum packet size with TCTL.PSP set is 17 so pad the skb
* in order to meet this minimum size requirement.
*/
if (skb->len < 17) {
if (skb_padto(skb, 17))
if (unlikely(skb->len < 17)) {
if (skb_pad(skb, 17 - skb->len))
return NETDEV_TX_OK;
skb->len = 17;
skb_set_tail_pointer(skb, 17);
}

return igb_xmit_frame_ring(skb, igb_tx_queue_mapping(adapter, skb));
Expand Down

0 comments on commit 09c6664

Please sign in to comment.