diff options
| author | Bruce Allan <[email protected]> | 2021-03-02 18:12:06 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2021-04-15 00:00:05 +0000 |
| commit | d41f26b5ef8fb4d5ae6f9b51526eefa62ec53348 (patch) | |
| tree | 897bf9814f86785369dcde94f64f4c171988afb7 /drivers/net/ethernet/intel/ice/ice_dcb_lib.c | |
| parent | Merge tag 'linux-can-next-for-5.13-20210414' of git://git.kernel.org/pub/scm/... (diff) | |
| download | kernel-d41f26b5ef8fb4d5ae6f9b51526eefa62ec53348.tar.gz kernel-d41f26b5ef8fb4d5ae6f9b51526eefa62ec53348.zip | |
ice: use kernel definitions for IANA protocol ports and ether-types
The well-known IANA protocol port 3260 (iscsi-target 0x0cbc) and the
ether-types 0x8906 (ETH_P_FCOE) and 0x8914 (ETH_P_FIP) are already defined
in kernel header files. Use those definitions instead of open-coding the
same.
Signed-off-by: Bruce Allan <[email protected]>
Tested-by: Tony Brelinski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_dcb_lib.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_dcb_lib.c b/drivers/net/ethernet/intel/ice/ice_dcb_lib.c index 1e8f71ffc8ce..df02cffdf209 100644 --- a/drivers/net/ethernet/intel/ice/ice_dcb_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_dcb_lib.c @@ -563,7 +563,7 @@ static int ice_dcb_sw_dflt_cfg(struct ice_pf *pf, bool ets_willing, bool locked) dcbcfg->numapps = 1; dcbcfg->app[0].selector = ICE_APP_SEL_ETHTYPE; dcbcfg->app[0].priority = 3; - dcbcfg->app[0].prot_id = ICE_APP_PROT_ID_FCOE; + dcbcfg->app[0].prot_id = ETH_P_FCOE; ret = ice_pf_dcb_cfg(pf, dcbcfg, locked); kfree(dcbcfg); |
