aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/emulex/benet/be.h3
-rw-r--r--drivers/net/ethernet/emulex/benet/be_main.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h
index cbdec2536da6..453d48612f83 100644
--- a/drivers/net/ethernet/emulex/benet/be.h
+++ b/drivers/net/ethernet/emulex/benet/be.h
@@ -74,6 +74,9 @@ static inline char *nic_name(struct pci_dev *pdev)
74 74
75/* Number of bytes of an RX frame that are copied to skb->data */ 75/* Number of bytes of an RX frame that are copied to skb->data */
76#define BE_HDR_LEN ((u16) 64) 76#define BE_HDR_LEN ((u16) 64)
77/* allocate extra space to allow tunneling decapsulation without head reallocation */
78#define BE_RX_SKB_ALLOC_SIZE (BE_HDR_LEN + 64)
79
77#define BE_MAX_JUMBO_FRAME_SIZE 9018 80#define BE_MAX_JUMBO_FRAME_SIZE 9018
78#define BE_MIN_MTU 256 81#define BE_MIN_MTU 256
79 82
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index e703d64434f8..0fbf365f5c62 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -1189,7 +1189,7 @@ static void be_rx_compl_process(struct be_adapter *adapter,
1189 struct net_device *netdev = adapter->netdev; 1189 struct net_device *netdev = adapter->netdev;
1190 struct sk_buff *skb; 1190 struct sk_buff *skb;
1191 1191
1192 skb = netdev_alloc_skb_ip_align(netdev, BE_HDR_LEN); 1192 skb = netdev_alloc_skb_ip_align(netdev, BE_RX_SKB_ALLOC_SIZE);
1193 if (unlikely(!skb)) { 1193 if (unlikely(!skb)) {
1194 rx_stats(rxo)->rx_drops_no_skbs++; 1194 rx_stats(rxo)->rx_drops_no_skbs++;
1195 be_rx_compl_discard(adapter, rxo, rxcp); 1195 be_rx_compl_discard(adapter, rxo, rxcp);