diff options
author | Tirthendu Sarkar <tirthendu.sarkar@intel.com> | 2023-03-10 00:26:09 +0530 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2023-03-09 13:10:57 -0800 |
commit | f7f732a7196d2e876639b1af453b30a6a5fe4a90 (patch) | |
tree | b66a7add924f8a28aff45957c6569b285e0352b3 /drivers/net/ethernet/intel/igc/igc_tsn.c | |
parent | a4ba62906db80246b24408e5c8a9e9d78b647b00 (diff) |
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 up to 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 2048 - sizeof(skb_shared_info). Also, driver can only
chain up to 5 Rx buffers and this means max MTU supported for legacy-rx
is now 8614 (5 * rx_buffer_len - ETH header with VLAN).
Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar@intel.com>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_tsn.c')
0 files changed, 0 insertions, 0 deletions