[Intel-wired-lan] [PATCH net v2] i40e: Fix endianness conversions

Brelinski, TonyX tonyx.brelinski at intel.com
Thu Feb 11 00:59:19 UTC 2021


From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Mateusz Palczewski
Sent: Friday, February 5, 2021 12:49 AM
To: intel-wired-lan at lists.osuosl.org
Cc: Ciosek, NorbertX <norbertx.ciosek at intel.com>
Subject: [Intel-wired-lan] [PATCH net v2] i40e: Fix endianness conversions

From: Norbert Ciosek <norbertx.ciosek at intel.com>

Fixes the following sparse warnings:
i40e_main.c:5953:32: warning: cast from restricted __le16
i40e_main.c:8008:29: warning: incorrect type in assignment (different base types)
i40e_main.c:8008:29:    expected unsigned int [assigned] [usertype] ipa
i40e_main.c:8008:29:    got restricted __le32 [usertype]
i40e_main.c:8008:29: warning: incorrect type in assignment (different base types)
i40e_main.c:8008:29:    expected unsigned int [assigned] [usertype] ipa
i40e_main.c:8008:29:    got restricted __le32 [usertype]
i40e_txrx.c:1950:59: warning: incorrect type in initializer (different base types)
i40e_txrx.c:1950:59:    expected unsigned short [usertype] vlan_tag
i40e_txrx.c:1950:59:    got restricted __le16 [usertype] l2tag1
i40e_txrx.c:1953:40: warning: cast to restricted __le16
i40e_xsk.c:448:38: warning: invalid assignment: |=
i40e_xsk.c:448:38:    left side has type restricted __le64
i40e_xsk.c:448:38:    right side has type int

Fixes: 2f4b411a3d67 ("i40e: Enable cloud filters via tc-flower")
Fixes: 2a508c64ad27 ("i40e: fix VLAN.TCI == 0 RX HW offload")
Fixes: 3106c580fb7c ("i40e: Use batched xsk Tx interfaces to increase performance")
Fixes: 8f88b3034db3 ("i40e: Add infrastructure for queue channel support")
Signed-off-by: Norbert Ciosek <norbertx.ciosek at intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 12 ++++++------  drivers/net/ethernet/intel/i40e/i40e_txrx.c |  2 +-  drivers/net/ethernet/intel/i40e/i40e_xsk.c  |  2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

Tested-by: Tony Brelinski <tonyx.brelinski at intel.com> A Contingent Worker at Intel




More information about the Intel-wired-lan mailing list