net/bnxt: update HWRM structures
HWRM API to a newer 1.10.1.70 version. Few fields have been renamed because of this. rx_err_pkt -> rx_discard_pkts rx_drop_pkts -> rx_error_pkts tx_err_pkts -> tx_discard_pkts tx_drop_pkts -> tx_error_pkts link_signal_mode -> active_fec_signal_mode tx_bd_long_hi.mss -> tx_bd_long_hi.kid_or_ts_high_mss tx_bd_long_hi.hdr_size -> tx_bd_long_hi.kid_or_ts_low_hdr_size Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
parent
7ed45b1a7c
commit
8b96a65ce5
@ -61,6 +61,7 @@ New Features
|
||||
|
||||
* Added support for 200G PAM4 link speed.
|
||||
* Added support for RSS hash level selection.
|
||||
* Updated HWRM structures to 1.10.1.70 version.
|
||||
|
||||
* **Updated Cisco enic driver.**
|
||||
|
||||
|
@ -1364,7 +1364,8 @@ static int bnxt_hwrm_port_phy_qcfg(struct bnxt *bp,
|
||||
link_info->phy_ver[0] = resp->phy_maj;
|
||||
link_info->phy_ver[1] = resp->phy_min;
|
||||
link_info->phy_ver[2] = resp->phy_bld;
|
||||
link_info->link_signal_mode = rte_le_to_cpu_16(resp->link_signal_mode);
|
||||
link_info->link_signal_mode =
|
||||
rte_le_to_cpu_16(resp->active_fec_signal_mode);
|
||||
link_info->force_pam4_link_speed =
|
||||
rte_le_to_cpu_16(resp->force_pam4_link_speed);
|
||||
link_info->support_pam4_speeds =
|
||||
@ -4011,8 +4012,8 @@ int bnxt_hwrm_ctx_qstats(struct bnxt *bp, uint32_t cid, int idx,
|
||||
stats->q_ibytes[idx] = rte_le_to_cpu_64(resp->rx_ucast_bytes);
|
||||
stats->q_ibytes[idx] += rte_le_to_cpu_64(resp->rx_mcast_bytes);
|
||||
stats->q_ibytes[idx] += rte_le_to_cpu_64(resp->rx_bcast_bytes);
|
||||
stats->q_errors[idx] = rte_le_to_cpu_64(resp->rx_err_pkts);
|
||||
stats->q_errors[idx] += rte_le_to_cpu_64(resp->rx_drop_pkts);
|
||||
stats->q_errors[idx] = rte_le_to_cpu_64(resp->rx_discard_pkts);
|
||||
stats->q_errors[idx] += rte_le_to_cpu_64(resp->rx_error_pkts);
|
||||
} else {
|
||||
stats->q_opackets[idx] = rte_le_to_cpu_64(resp->tx_ucast_pkts);
|
||||
stats->q_opackets[idx] += rte_le_to_cpu_64(resp->tx_mcast_pkts);
|
||||
|
@ -216,6 +216,10 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,
|
||||
&txr->tx_desc_ring[txr->tx_prod];
|
||||
txbd1->lflags = 0;
|
||||
txbd1->cfa_meta = vlan_tag_flags;
|
||||
/* Legacy tx_bd_long_hi->mss =
|
||||
* tx_bd_long_hi->kid_or_ts_high_mss
|
||||
*/
|
||||
txbd1->kid_or_ts_high_mss = 0;
|
||||
|
||||
if (txq->vfr_tx_cfa_action)
|
||||
txbd1->cfa_action = txq->vfr_tx_cfa_action;
|
||||
@ -235,91 +239,76 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,
|
||||
tx_pkt->outer_l3_len : 0;
|
||||
/* The hdr_size is multiple of 16bit units not 8bit.
|
||||
* Hence divide by 2.
|
||||
* Also legacy hdr_size = kid_or_ts_low_hdr_size.
|
||||
*/
|
||||
txbd1->hdr_size = hdr_size >> 1;
|
||||
txbd1->mss = tx_pkt->tso_segsz;
|
||||
RTE_VERIFY(txbd1->mss);
|
||||
txbd1->kid_or_ts_low_hdr_size = hdr_size >> 1;
|
||||
txbd1->kid_or_ts_high_mss = tx_pkt->tso_segsz;
|
||||
RTE_VERIFY(txbd1->kid_or_ts_high_mss);
|
||||
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OIP_IIP_TCP_UDP_CKSUM) ==
|
||||
PKT_TX_OIP_IIP_TCP_UDP_CKSUM) {
|
||||
/* Outer IP, Inner IP, Inner TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_TIP_IP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OIP_IIP_TCP_CKSUM) ==
|
||||
PKT_TX_OIP_IIP_TCP_CKSUM) {
|
||||
/* Outer IP, Inner IP, Inner TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_TIP_IP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OIP_IIP_UDP_CKSUM) ==
|
||||
PKT_TX_OIP_IIP_UDP_CKSUM) {
|
||||
/* Outer IP, Inner IP, Inner TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_TIP_IP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_IIP_TCP_UDP_CKSUM) ==
|
||||
PKT_TX_IIP_TCP_UDP_CKSUM) {
|
||||
/* (Inner) IP, (Inner) TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_IP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_IIP_UDP_CKSUM) ==
|
||||
PKT_TX_IIP_UDP_CKSUM) {
|
||||
/* (Inner) IP, (Inner) TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_IP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_IIP_TCP_CKSUM) ==
|
||||
PKT_TX_IIP_TCP_CKSUM) {
|
||||
/* (Inner) IP, (Inner) TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_IP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OIP_TCP_UDP_CKSUM) ==
|
||||
PKT_TX_OIP_TCP_UDP_CKSUM) {
|
||||
/* Outer IP, (Inner) TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_TIP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OIP_UDP_CKSUM) ==
|
||||
PKT_TX_OIP_UDP_CKSUM) {
|
||||
/* Outer IP, (Inner) TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_TIP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OIP_TCP_CKSUM) ==
|
||||
PKT_TX_OIP_TCP_CKSUM) {
|
||||
/* Outer IP, (Inner) TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_TIP_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OIP_IIP_CKSUM) ==
|
||||
PKT_TX_OIP_IIP_CKSUM) {
|
||||
/* Outer IP, Inner IP CSO */
|
||||
txbd1->lflags |= TX_BD_FLG_TIP_IP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_TCP_UDP_CKSUM) ==
|
||||
PKT_TX_TCP_UDP_CKSUM) {
|
||||
/* TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_LONG_LFLAGS_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_TCP_CKSUM) ==
|
||||
PKT_TX_TCP_CKSUM) {
|
||||
/* TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_LONG_LFLAGS_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_UDP_CKSUM) ==
|
||||
PKT_TX_UDP_CKSUM) {
|
||||
/* TCP/UDP CSO */
|
||||
txbd1->lflags |= TX_BD_LONG_LFLAGS_TCP_UDP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_IP_CKSUM) ==
|
||||
PKT_TX_IP_CKSUM) {
|
||||
/* IP CSO */
|
||||
txbd1->lflags |= TX_BD_LONG_LFLAGS_IP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_OUTER_IP_CKSUM) ==
|
||||
PKT_TX_OUTER_IP_CKSUM) {
|
||||
/* IP CSO */
|
||||
txbd1->lflags |= TX_BD_LONG_LFLAGS_T_IP_CHKSUM;
|
||||
txbd1->mss = 0;
|
||||
} else if ((tx_pkt->ol_flags & PKT_TX_IEEE1588_TMST) ==
|
||||
PKT_TX_IEEE1588_TMST) {
|
||||
/* PTP */
|
||||
txbd1->lflags |= TX_BD_LONG_LFLAGS_STAMP;
|
||||
txbd1->mss = 0;
|
||||
}
|
||||
} else {
|
||||
txbd->flags_type |= TX_BD_SHORT_TYPE_TX_BD_SHORT;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user