Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289761
b: refs/heads/master
c: bb349bb
h: refs/heads/master
i:
  289759: 0251985
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 26, 2012
1 parent fe0d0e6 commit 906f2cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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: 85b26ea18ee63be83d65ec6db72ad7857980a04b
refs/heads/master: bb349bb4b19b39830e0486aedfd7c7dca23b7baf
3 changes: 3 additions & 0 deletions trunk/drivers/net/ethernet/emulex/benet/be.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ static inline char *nic_name(struct pci_dev *pdev)

/* Number of bytes of an RX frame that are copied to skb->data */
#define BE_HDR_LEN ((u16) 64)
/* allocate extra space to allow tunneling decapsulation without head reallocation */
#define BE_RX_SKB_ALLOC_SIZE (BE_HDR_LEN + 64)

#define BE_MAX_JUMBO_FRAME_SIZE 9018
#define BE_MIN_MTU 256

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ static void be_rx_compl_process(struct be_adapter *adapter,
struct net_device *netdev = adapter->netdev;
struct sk_buff *skb;

skb = netdev_alloc_skb_ip_align(netdev, BE_HDR_LEN);
skb = netdev_alloc_skb_ip_align(netdev, BE_RX_SKB_ALLOC_SIZE);
if (unlikely(!skb)) {
rx_stats(rxo)->rx_drops_no_skbs++;
be_rx_compl_discard(adapter, rxo, rxcp);
Expand Down

0 comments on commit 906f2cb

Please sign in to comment.