>-----Original Message----- >From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of >Sarkar, Tirthendu >Sent: 18 February 2023 00:45 >To: intel-wired-lan@xxxxxxxxxxxxxxxx >Cc: Sarkar, Tirthendu <tirthendu.sarkar@xxxxxxxxx>; netdev@xxxxxxxxxxxxxxx; >Brandeburg, Jesse <jesse.brandeburg@xxxxxxxxx>; Nguyen, Anthony L ><anthony.l.nguyen@xxxxxxxxx>; bpf@xxxxxxxxxxxxxxx; Karlsson, Magnus ><magnus.karlsson@xxxxxxxxx> >Subject: [Intel-wired-lan] [PATCH intel-next v6 2/8] i40e: change Rx buffer size >for legacy-rx to support XDP multi-buffer > >Adding support for XDP multi-buffer entails adding information of all the >fragments of the packet in the xdp_buff. This approach implies that >underlying buffer has to provide tailroom for skb_shared_info. > >In the legacy-rx mode, driver can only configure upto 2k sized Rx buffers and >with the current configuration of 2k sized Rx buffers there is no way to do >tailroom reservation for skb_shared_info. Hence size of Rx buffers is now >lowered to 1664 (2k - sizeof(skb_shared_info)). Also, driver can only chain >upto 5 Rx buffers and this means max MTU supported for legacy-rx is now >8320. > >Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar@xxxxxxxxx> >--- > drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +- >drivers/net/ethernet/intel/i40e/i40e_txrx.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > Tested-by: Chandan Kumar Rout <chandanx.rout@xxxxxxxxx> (A Contingent Worker at Intel)