]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: change the flex-byte support number to macro definition
authorHaiyue Wang <haiyue.wang@intel.com>
Wed, 31 Mar 2021 02:08:35 +0000 (10:08 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 23 Apr 2021 16:03:56 +0000 (09:03 -0700)
commita32a29c4387974663c9af9bcf2ad1eb64b5f8b6f
treedb0a50bc3a8118660b3be1912d777f15e80045ab
parent8b07262a087b02d87ae162668433405faa2b3bd2
iavf: change the flex-byte support number to macro definition

The maximum number (2) of flex-byte support is derived from ethtool
use-def data size (8 byte).

Change the magic number 2 to macro definition, and add the comment to
track the design thinking, so the code is clear and easily maintained.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_ethtool.c
drivers/net/ethernet/intel/iavf/iavf_fdir.h