summaryrefslogtreecommitdiff
path: root/kernel/acct.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2023-04-13 00:16:03 +0300
committerDavid S. Miller <davem@davemloft.net>2023-04-14 10:56:19 +0300
commit80f6215b450eb8e92d8b1f117abf5ecf867f963e (patch)
tree24070c4dc05d955628cf2b844f7655bd4c1c954f /kernel/acct.c
parent2fbbd712baf1c60996554326728bbdbef5616e12 (diff)
downloadlinux-80f6215b450eb8e92d8b1f117abf5ecf867f963e.tar.xz
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>
Diffstat (limited to 'kernel/acct.c')
0 files changed, 0 insertions, 0 deletions