diff options
author | Kalesh A P <kalesh-anakkur.purayil@broadcom.com> | 2016-12-20 10:14:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-21 13:23:05 -0500 |
commit | 76b15923b777aa2660029629179550124c1fc40e (patch) | |
tree | f8056964ded8011bcfe01fd63d0ce00c9a466e9d /drivers/net/ethernet/emulex | |
parent | ba6d973f78eb62ffebb32f6ef3334fc9a3b33d22 (diff) | |
download | linux-76b15923b777aa2660029629179550124c1fc40e.tar.bz2 |
be2net: Increase skb headroom size to 256 bytes
The driver currently allocates 128 bytes of skb headroom.
This was found to be insufficient with some configurations
like Geneve tunnels, which resulted in skb head reallocations.
Increase the headroom to 256 bytes to fix this.
Signed-off-by: Kalesh A P <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 6cfa63a5e9b4..4c30c44b242e 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -65,7 +65,7 @@ /* 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_RX_SKB_ALLOC_SIZE 256 #define BE_MAX_JUMBO_FRAME_SIZE 9018 #define BE_MIN_MTU 256 |