]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Disallow changing rx/tx-frames and rx/tx-frames-irq
authorPrzemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Mon, 13 Jun 2022 23:07:42 +0000 (19:07 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Jul 2022 16:36:40 +0000 (09:36 -0700)
commit93530753e5b57aeb7d9c0a1c0bbe0bb7f03426da
tree60b64e0734bb40cf32029e004903b99be98af9d3
parent9207ff7f5f67eba07b59a067c66f90d401f2ce39
iavf: Disallow changing rx/tx-frames and rx/tx-frames-irq

Remove from supported_coalesce_params ETHTOOL_COALESCE_MAX_FRAMES
and ETHTOOL_COALESCE_MAX_FRAMES_IRQ. As tx-frames-irq allowed
user to change budget for iavf_clean_tx_irq, remove work_limit
and use define for budget.

Without this patch there would be possibility to change rx/tx-frames
and rx/tx-frames-irq, which for rx/tx-frames did nothing, while for
rx/tx-frames-irq it changed rx/tx-frames and only changed budget
for cleaning NAPI poll.

Fixes: 2af418dd870b ("i40evf: core ethtool functionality")
Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Signed-off-by: Jun Zhang <xuejun.zhang@intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_ethtool.c
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_txrx.c