From: Kalesh A P Date: Tue, 20 Dec 2016 15:14:30 +0000 (-0500) Subject: be2net: Increase skb headroom size to 256 bytes X-Git-Tag: v4.1.12-98.0.20170517_2143~42^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bc86d1a5cddfd3a03ad4361bcd8bf651430c1c3d;p=users%2Fjedix%2Flinux-maple.git be2net: Increase skb headroom size to 256 bytes Orabug: 25570957 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 Signed-off-by: Suresh Reddy Signed-off-by: David S. Miller (cherry picked from commit 76b15923b777aa2660029629179550124c1fc40e) Signed-off-by: Brian Maly Signed-off-by: Dhaval Giani --- diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 47c7535439336..0fbbb7352ff01 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