OSDN Git Service

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)
commitf995f95af626cb1867cbfc702d011a50c4ff9538
treedb0a50bc3a8118660b3be1912d777f15e80045ab
parent1a0e880b028f97478dc689e2900b312741d0d772
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