~bladernr/ubuntu/+source/linux/+git/mantic:2045796-bnxt_en-for-22.04.4

Last commit made on 2023-12-14
Get this branch:
git clone -b 2045796-bnxt_en-for-22.04.4 https://git.launchpad.net/~bladernr/ubuntu/+source/linux/+git/mantic
Only Jeff Lane  can upload to this branch. If you are Jeff Lane  please log in for upload directions.

Branch merges

Branch information

Name:
2045796-bnxt_en-for-22.04.4
Repository:
lp:~bladernr/ubuntu/+source/linux/+git/mantic

Recent commits

84f8c75... by Dinghao Liu <email address hidden>

net: bnxt: fix a potential use-after-free in bnxt_init_tc

BugLink: https://bugs.launchpad.net/bugs/2045796

When flow_indr_dev_register() fails, bnxt_init_tc will free
bp->tc_info through kfree(). However, the caller function
bnxt_init_one() will ignore this failure and call
bnxt_shutdown_tc() on failure of bnxt_dl_register(), where
a use-after-free happens. Fix this issue by setting
bp->tc_info to NULL after kfree().

Fixes: 627c89d00fb9 ("bnxt_en: flow_offload: offload tunnel decap rules via indirect callbacks")
Signed-off-by: Dinghao Liu <email address hidden>
Reviewed-by: Pavan Chebbi <email address hidden>
Reviewed-by: Michael Chan <email address hidden>
Reviewed-by: Somnath Kotur <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit d007caaaf052f82ca2340d4c7b32d04a3f5dbf3f linux-next)
Signed-off-by: Jeff Lane <email address hidden>

08c3b93... by Michael Chan <email address hidden>

bnxt_en: Add 5760X (P7) PCI IDs

BugLink: https://bugs.launchpad.net/bugs/2045796

Now with basic support for the new chip family, add the PCI IDs of the
new devices.

Reviewed-by: Andy Gospodarek <email address hidden>
Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 2012a6abc87657c6c8171bb5ff13dd9bafb241bf linux-next)
Signed-off-by: Jeff Lane <email address hidden>

12222bb... by Michael Chan <email address hidden>

bnxt_en: Report the new ethtool link modes in the new firmware interface

BugLink: https://bugs.launchpad.net/bugs/2045796

Add new look up entries to convert the new supported speeds, advertised
speeds, etc to ethtool link modes.

Reviewed-by: Damodharam Ammepalli <email address hidden>
Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 047a2d38e40cf37d75548554d6811cb2a305faae linux-next)
Signed-off-by: Jeff Lane <email address hidden>

45b14e8... by Michael Chan <email address hidden>

bnxt_en: Support force speed using the new HWRM fields

BugLink: https://bugs.launchpad.net/bugs/2045796

Modify bnxt_force_link_speed() to support the new speeds stored in
link_info->support_speeds2, including the new 400G speed.

Reviewed-by: Ajit Khaparde <email address hidden>
Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 7b60cf2b641a0de8117714dd6653e19a05ab4fda linux-next)
Signed-off-by: Jeff Lane <email address hidden>

b676023... by Michael Chan <email address hidden>

bnxt_en: Support new firmware link parameters

BugLink: https://bugs.launchpad.net/bugs/2045796

Newer firmware supporting PAM4 112Gbps speeds use new parameters in
firmware message structures. Detect the new firmware capability and
add basic logic to report and store these new fields.

Reviewed-by: Hongguang Gao <email address hidden>
Reviewed-by: Damodharam Ammepalli <email address hidden>
Reviewed-by: Ajit Khaparde <email address hidden>
Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 30c0bb63c2ea0d7b8a9057afff2317d7b40846b1 linux-next)
Signed-off-by: Jeff Lane <email address hidden>

a389b31... by Michael Chan <email address hidden>

bnxt_en: Refactor ethtool speeds logic

BugLink: https://bugs.launchpad.net/bugs/2045796

Add helper functions to refactor the logic that converts firmware
speed masks to ethtool speeds. Pass the phy_flags to
bnxt_get_ethtool_speeds() and the call chain. The refactoring and the
phy_flags will be needed when adding support for the new speeds in the
next patches.

Reviewed-by: Ajit Khaparde <email address hidden>
Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit cf47fa5ca5bb095c3d7b8222b959f54d952cf9e5 linux-next)
Signed-off-by: Jeff Lane <email address hidden>

8b6f25a... by Michael Chan <email address hidden>

bnxt_en: Add support for new RX and TPA_START completion types for P7

BugLink: https://bugs.launchpad.net/bugs/2045796

These new completion types are supported on the new P7 chips.
These new types have commonalities with the legacy types. After
the refactoring, we mainly have to add new functions to handle the
the new meta data formats and the RX hash information in the new
types.

Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit a7445d69809fe33619c451a8bf68d6b9cf335909 linux-next)
Signed-off-by: Jeff Lane <email address hidden>

abe4038... by Michael Chan <email address hidden>

bnxt_en: Refactor and refine bnxt_tpa_start() and bnxt_tpa_end().

BugLink: https://bugs.launchpad.net/bugs/2045796

Refactor bnxt_tpa_start() by adding bnxt_tpa_metadata() to gather the
metadata from the TPA_START completion. This makes it easier to
support the new P7 chip which has a modified TPA_START completion
structure with different metadata formats. We also add vlan_valid
and cfa_code_valid fields to the bnxt_tpa_info structure so that the
VLAN and VF rep logic can be common for all chips. The VLAN metadata
is now collected in bnxt_tpa_start() only when it is valid and the
vlan_valid field will be set. bnxt_tpa_end() can now use common VLAN
logic for all chips.

Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 39b2e62be3704d358c2c82eb326ae4b82a23ce1a linux-next)
Signed-off-by: Jeff Lane <email address hidden>

ef13d00... by Michael Chan <email address hidden>

bnxt_en: Refactor RX VLAN acceleration logic.

BugLink: https://bugs.launchpad.net/bugs/2045796

Refactor the logic in the RX path that checks for the accelerated VLAN
tag by adding a new function. This will make it easier to support
the new receive logic on P7 chips.

Reviewed-by: Pavan Chebbi <email address hidden>
Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit c2f8063309da9be81679e27cabd4a9dbf9be43cc linux-next)
Signed-off-by: Jeff Lane <email address hidden>

531f183... by Michael Chan <email address hidden>

bnxt_en: Add new P7 hardware interface definitions

BugLink: https://bugs.launchpad.net/bugs/2045796

Add new RX, TX, and TPA hardware interface structures and macros for the
P7 chips.

Reviewed-by: Andy Gospodarek <email address hidden>
Signed-off-by: Michael Chan <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 13d2d3d381ee9844f89bd436ab0f44204660027e linux-next)
Signed-off-by: Jeff Lane <email address hidden>