diff options
author | 2023-09-27 10:31:29 +0200 | |
---|---|---|
committer | 2023-10-05 09:13:42 -0700 | |
commit | 8196b5fd6c7312d31775f77c7fff0253eb0ecdaa (patch) | |
tree | d5f1a21858529093554fe72dbc294be0e3419a8c /drivers/net/macsec.c | |
parent | i40e: Move I40E_MASK macro to i40e_register.h (diff) | |
download | wireguard-linux-8196b5fd6c7312d31775f77c7fff0253eb0ecdaa.tar.xz wireguard-linux-8196b5fd6c7312d31775f77c7fff0253eb0ecdaa.zip |
i40e: Refactor I40E_MDIO_CLAUSE* macros
The macros I40E_MDIO_CLAUSE22* and I40E_MDIO_CLAUSE45* are using I40E_MASK
together with the same values I40E_GLGEN_MSCA_STCODE_SHIFT and
I40E_GLGEN_MSCA_OPCODE_SHIFT to define masks.
Introduce I40E_GLGEN_MSCA_OPCODE_MASK and I40E_GLGEN_MSCA_STCODE_MASK
for both shifts in i40e_register.h and use them to refactor the macros
mentioned above.
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/macsec.c')
0 files changed, 0 insertions, 0 deletions