OpenCloudOS-Kernel/include/net/mana
Haiyang Zhang 80f6215b45 net: mana: Add support for jumbo frame
During probe, get the hardware-allowed max MTU by querying the device
configuration. Users can select MTU up to the device limit.
When XDP is in use, limit MTU settings so the buffer size is within
one page. And, when MTU is set to a too large value, XDP is not allowed
to run.
Also, to prevent changing MTU fails, and leaves the NIC in a bad state,
pre-allocate all buffers before starting the change. So in low memory
condition, it will return error, without affecting the NIC.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-04-14 08:56:19 +01:00
..
gdma.h net: mana: Add support for jumbo frame 2023-04-14 08:56:19 +01:00
hw_channel.h net: mana: Move header files to a common location 2022-11-10 07:57:26 +02:00
mana.h net: mana: Add support for jumbo frame 2023-04-14 08:56:19 +01:00
mana_auxiliary.h net: mana: Move header files to a common location 2022-11-10 07:57:26 +02:00
shm_channel.h net: mana: Move header files to a common location 2022-11-10 07:57:26 +02:00