Skip to content

Commit 249aca0

Browse files
committed
Merge tag 'net-5.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Including fixes from bluetooth, bpf and netfilter. Current release - new code bugs: - bridge: switchdev: check br_vlan_group() return value - use this_cpu_inc() to increment net->core_stats, fix preempt-rt Previous releases - regressions: - eth: stmmac: fix write to sgmii_adapter_base Previous releases - always broken: - netfilter: nf_conntrack_tcp: re-init for syn packets only, resolving issues with TCP fastopen - tcp: md5: fix incorrect tcp_header_len for incoming connections - tcp: fix F-RTO may not work correctly when receiving DSACK - tcp: ensure use of most recently sent skb when filling rate samples - tcp: fix potential xmit stalls caused by TCP_NOTSENT_LOWAT - virtio_net: fix wrong buf address calculation when using xdp - xsk: fix forwarding when combining copy mode with busy poll - xsk: fix possible crash when multiple sockets are created - bpf: lwt: fix crash when using bpf_skb_set_tunnel_key() from bpf_xmit lwt hook - sctp: null-check asoc strreset_chunk in sctp_generate_reconf_event - wireguard: device: check for metadata_dst with skb_valid_dst() - netfilter: update ip6_route_me_harder to consider L3 domain - gre: make o_seqno start from 0 in native mode - gre: switch o_seqno to atomic to prevent races in collect_md mode Misc: - add Eric Dumazet to networking maintainers - dt: dsa: realtek: remove realtek,rtl8367s string - netfilter: flowtable: Remove the empty file" * tag 'net-5.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (65 commits) tcp: fix F-RTO may not work correctly when receiving DSACK Revert "ibmvnic: Add ethtool private flag for driver-defined queue limits" net: enetc: allow tc-etf offload even with NETIF_F_CSUM_MASK ixgbe: ensure IPsec VF<->PF compatibility MAINTAINERS: Update BNXT entry with firmware files netfilter: nft_socket: only do sk lookups when indev is available net: fec: add missing of_node_put() in fec_enet_init_stop_mode() bnx2x: fix napi API usage sequence tls: Skip tls_append_frag on zero copy size Add Eric Dumazet to networking maintainers netfilter: conntrack: fix udp offload timeout sysctl netfilter: nf_conntrack_tcp: re-init for syn packets only net: dsa: lantiq_gswip: Don't set GSWIP_MII_CFG_RMII_CLK net: Use this_cpu_inc() to increment net->core_stats Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted Bluetooth: hci_event: Fix creating hci_conn object on error status Bluetooth: hci_event: Fix checking for invalid handle on error status ice: fix use-after-free when deinitializing mailbox snapshot ice: wait 5 s for EMP reset after firmware flash ice: Protect vf_state check by cfg_lock in ice_vc_process_vf_msg() ...
2 parents 3c76fe7 + d9157f6 commit 249aca0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+598
-414
lines changed

Documentation/devicetree/bindings/net/dsa/realtek.yaml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,25 @@ description:
2727
The realtek-mdio driver is an MDIO driver and it must be inserted inside
2828
an MDIO node.
2929

30+
The compatible string is only used to identify which (silicon) family the
31+
switch belongs to. Roughly speaking, a family is any set of Realtek switches
32+
whose chip identification register(s) have a common location and semantics.
33+
The different models in a given family can be automatically disambiguated by
34+
parsing the chip identification register(s) according to the given family,
35+
avoiding the need for a unique compatible string for each model.
36+
3037
properties:
3138
compatible:
3239
enum:
3340
- realtek,rtl8365mb
34-
- realtek,rtl8366
3541
- realtek,rtl8366rb
36-
- realtek,rtl8366s
37-
- realtek,rtl8367
38-
- realtek,rtl8367b
39-
- realtek,rtl8367rb
40-
- realtek,rtl8367s
41-
- realtek,rtl8368s
42-
- realtek,rtl8369
43-
- realtek,rtl8370
4442
description: |
45-
realtek,rtl8365mb: 4+1 ports
46-
realtek,rtl8366: 5+1 ports
47-
realtek,rtl8366rb: 5+1 ports
48-
realtek,rtl8366s: 5+1 ports
49-
realtek,rtl8367:
50-
realtek,rtl8367b:
51-
realtek,rtl8367rb: 5+2 ports
52-
realtek,rtl8367s: 5+2 ports
53-
realtek,rtl8368s: 8 ports
54-
realtek,rtl8369: 8+1 ports
55-
realtek,rtl8370: 8+2 ports
43+
realtek,rtl8365mb:
44+
Use with models RTL8363NB, RTL8363NB-VB, RTL8363SC, RTL8363SC-VB,
45+
RTL8364NB, RTL8364NB-VB, RTL8365MB, RTL8366SC, RTL8367RB-VB, RTL8367S,
46+
RTL8367SB, RTL8370MB, RTL8310SR
47+
realtek,rtl8366rb:
48+
Use with models RTL8366RB, RTL8366S
5649
5750
mdc-gpios:
5851
description: GPIO line for the MDC clock line.
@@ -335,7 +328,7 @@ examples:
335328
#size-cells = <0>;
336329
337330
switch@29 {
338-
compatible = "realtek,rtl8367s";
331+
compatible = "realtek,rtl8365mb";
339332
reg = <29>;
340333
341334
reset-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;

MAINTAINERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3913,7 +3913,9 @@ BROADCOM BNXT_EN 50 GIGABIT ETHERNET DRIVER
39133913
M: Michael Chan <[email protected]>
39143914
39153915
S: Supported
3916+
F: drivers/firmware/broadcom/tee_bnxt_fw.c
39163917
F: drivers/net/ethernet/broadcom/bnxt/
3918+
F: include/linux/firmware/broadcom/tee_bnxt_fw.h
39173919

39183920
BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER
39193921
M: Arend van Spriel <[email protected]>
@@ -13623,6 +13625,7 @@ F: net/core/drop_monitor.c
1362313625

1362413626
NETWORKING DRIVERS
1362513627
M: "David S. Miller" <[email protected]>
13628+
M: Eric Dumazet <[email protected]>
1362613629
M: Jakub Kicinski <[email protected]>
1362713630
M: Paolo Abeni <[email protected]>
1362813631
@@ -13670,6 +13673,7 @@ F: tools/testing/selftests/drivers/net/dsa/
1367013673

1367113674
NETWORKING [GENERAL]
1367213675
M: "David S. Miller" <[email protected]>
13676+
M: Eric Dumazet <[email protected]>
1367313677
M: Jakub Kicinski <[email protected]>
1367413678
M: Paolo Abeni <[email protected]>
1367513679

drivers/net/dsa/lantiq_gswip.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,9 +1681,6 @@ static void gswip_phylink_mac_config(struct dsa_switch *ds, int port,
16811681
break;
16821682
case PHY_INTERFACE_MODE_RMII:
16831683
miicfg |= GSWIP_MII_CFG_MODE_RMIIM;
1684-
1685-
/* Configure the RMII clock as output: */
1686-
miicfg |= GSWIP_MII_CFG_RMII_CLK;
16871684
break;
16881685
case PHY_INTERFACE_MODE_RGMII:
16891686
case PHY_INTERFACE_MODE_RGMII_ID:

drivers/net/dsa/mv88e6xxx/port_hidden.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ int mv88e6xxx_port_hidden_wait(struct mv88e6xxx_chip *chip)
4040
{
4141
int bit = __bf_shf(MV88E6XXX_PORT_RESERVED_1A_BUSY);
4242

43-
return mv88e6xxx_wait_bit(chip, MV88E6XXX_PORT_RESERVED_1A_CTRL_PORT,
44-
MV88E6XXX_PORT_RESERVED_1A, bit, 0);
43+
return mv88e6xxx_port_wait_bit(chip,
44+
MV88E6XXX_PORT_RESERVED_1A_CTRL_PORT,
45+
MV88E6XXX_PORT_RESERVED_1A, bit, 0);
4546
}
4647

4748
int mv88e6xxx_port_hidden_read(struct mv88e6xxx_chip *chip, int block, int port,

drivers/net/dsa/realtek/realtek-mdio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ static const struct of_device_id realtek_mdio_of_match[] = {
267267
#endif
268268
#if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB)
269269
{ .compatible = "realtek,rtl8365mb", .data = &rtl8365mb_variant, },
270-
{ .compatible = "realtek,rtl8367s", .data = &rtl8365mb_variant, },
271270
#endif
272271
{ /* sentinel */ },
273272
};

drivers/net/dsa/realtek/realtek-smi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -551,10 +551,6 @@ static const struct of_device_id realtek_smi_of_match[] = {
551551
.compatible = "realtek,rtl8365mb",
552552
.data = &rtl8365mb_variant,
553553
},
554-
{
555-
.compatible = "realtek,rtl8367s",
556-
.data = &rtl8365mb_variant,
557-
},
558554
#endif
559555
{ /* sentinel */ },
560556
};

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14153,10 +14153,6 @@ static int bnx2x_eeh_nic_unload(struct bnx2x *bp)
1415314153

1415414154
/* Stop Tx */
1415514155
bnx2x_tx_disable(bp);
14156-
/* Delete all NAPI objects */
14157-
bnx2x_del_all_napi(bp);
14158-
if (CNIC_LOADED(bp))
14159-
bnx2x_del_all_napi_cnic(bp);
1416014156
netdev_reset_tc(bp->dev);
1416114157

1416214158
del_timer_sync(&bp->timer);
@@ -14261,6 +14257,11 @@ static pci_ers_result_t bnx2x_io_slot_reset(struct pci_dev *pdev)
1426114257
bnx2x_drain_tx_queues(bp);
1426214258
bnx2x_send_unload_req(bp, UNLOAD_RECOVERY);
1426314259
bnx2x_netif_stop(bp, 1);
14260+
bnx2x_del_all_napi(bp);
14261+
14262+
if (CNIC_LOADED(bp))
14263+
bnx2x_del_all_napi_cnic(bp);
14264+
1426414265
bnx2x_free_irq(bp);
1426514266

1426614267
/* Report UNLOAD_DONE to MCP */

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,6 +2035,11 @@ static struct sk_buff *bcmgenet_add_tsb(struct net_device *dev,
20352035
return skb;
20362036
}
20372037

2038+
static void bcmgenet_hide_tsb(struct sk_buff *skb)
2039+
{
2040+
__skb_pull(skb, sizeof(struct status_64));
2041+
}
2042+
20382043
static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev)
20392044
{
20402045
struct bcmgenet_priv *priv = netdev_priv(dev);
@@ -2141,6 +2146,8 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev)
21412146
}
21422147

21432148
GENET_CB(skb)->last_cb = tx_cb_ptr;
2149+
2150+
bcmgenet_hide_tsb(skb);
21442151
skb_tx_timestamp(skb);
21452152

21462153
/* Decrement total BD count and advance our write pointer */

drivers/net/ethernet/freescale/enetc/enetc_qos.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,6 @@ int enetc_setup_tc_txtime(struct net_device *ndev, void *type_data)
297297
if (tc < 0 || tc >= priv->num_tx_rings)
298298
return -EINVAL;
299299

300-
/* Do not support TXSTART and TX CSUM offload simutaniously */
301-
if (ndev->features & NETIF_F_CSUM_MASK)
302-
return -EBUSY;
303-
304300
/* TSD and Qbv are mutually exclusive in hardware */
305301
if (enetc_rd(&priv->si->hw, ENETC_QBV_PTGCR_OFFSET) & ENETC_QBV_TGE)
306302
return -EBUSY;

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3731,7 +3731,7 @@ static int fec_enet_init_stop_mode(struct fec_enet_private *fep,
37313731
ARRAY_SIZE(out_val));
37323732
if (ret) {
37333733
dev_dbg(&fep->pdev->dev, "no stop mode property\n");
3734-
return ret;
3734+
goto out;
37353735
}
37363736

37373737
fep->stop_gpr.gpr = syscon_node_to_regmap(gpr_np);

drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,19 +1065,23 @@ int hns_mac_init(struct dsaf_device *dsaf_dev)
10651065
device_for_each_child_node(dsaf_dev->dev, child) {
10661066
ret = fwnode_property_read_u32(child, "reg", &port_id);
10671067
if (ret) {
1068+
fwnode_handle_put(child);
10681069
dev_err(dsaf_dev->dev,
10691070
"get reg fail, ret=%d!\n", ret);
10701071
return ret;
10711072
}
10721073
if (port_id >= max_port_num) {
1074+
fwnode_handle_put(child);
10731075
dev_err(dsaf_dev->dev,
10741076
"reg(%u) out of range!\n", port_id);
10751077
return -EINVAL;
10761078
}
10771079
mac_cb = devm_kzalloc(dsaf_dev->dev, sizeof(*mac_cb),
10781080
GFP_KERNEL);
1079-
if (!mac_cb)
1081+
if (!mac_cb) {
1082+
fwnode_handle_put(child);
10801083
return -ENOMEM;
1084+
}
10811085
mac_cb->fw_port = child;
10821086
mac_cb->mac_id = (u8)port_id;
10831087
dsaf_dev->mac_cb[port_id] = mac_cb;

drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int hclge_comm_tqps_update_stats(struct hnae3_handle *handle,
7575
ret = hclge_comm_cmd_send(hw, &desc, 1);
7676
if (ret) {
7777
dev_err(&hw->cmq.csq.pdev->dev,
78-
"failed to get tqp stat, ret = %d, tx = %u.\n",
78+
"failed to get tqp stat, ret = %d, rx = %u.\n",
7979
ret, i);
8080
return ret;
8181
}
@@ -89,7 +89,7 @@ int hclge_comm_tqps_update_stats(struct hnae3_handle *handle,
8989
ret = hclge_comm_cmd_send(hw, &desc, 1);
9090
if (ret) {
9191
dev_err(&hw->cmq.csq.pdev->dev,
92-
"failed to get tqp stat, ret = %d, rx = %u.\n",
92+
"failed to get tqp stat, ret = %d, tx = %u.\n",
9393
ret, i);
9494
return ret;
9595
}

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ static void hns3_dbg_tx_spare_info(struct hns3_enet_ring *ring, char *buf,
562562

563563
for (i = 0; i < ring_num; i++) {
564564
j = 0;
565-
sprintf(result[j++], "%8u", i);
566-
sprintf(result[j++], "%9u", ring->tx_copybreak);
567-
sprintf(result[j++], "%3u", tx_spare->len);
568-
sprintf(result[j++], "%3u", tx_spare->next_to_use);
569-
sprintf(result[j++], "%3u", tx_spare->next_to_clean);
570-
sprintf(result[j++], "%3u", tx_spare->last_to_clean);
565+
sprintf(result[j++], "%u", i);
566+
sprintf(result[j++], "%u", ring->tx_copybreak);
567+
sprintf(result[j++], "%u", tx_spare->len);
568+
sprintf(result[j++], "%u", tx_spare->next_to_use);
569+
sprintf(result[j++], "%u", tx_spare->next_to_clean);
570+
sprintf(result[j++], "%u", tx_spare->last_to_clean);
571571
sprintf(result[j++], "%pad", &tx_spare->dma);
572572
hns3_dbg_fill_content(content, sizeof(content),
573573
tx_spare_info_items,
@@ -598,35 +598,35 @@ static void hns3_dump_rx_queue_info(struct hns3_enet_ring *ring,
598598
u32 base_add_l, base_add_h;
599599
u32 j = 0;
600600

601-
sprintf(result[j++], "%8u", index);
601+
sprintf(result[j++], "%u", index);
602602

603-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
603+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
604604
HNS3_RING_RX_RING_BD_NUM_REG));
605605

606-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
606+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
607607
HNS3_RING_RX_RING_BD_LEN_REG));
608608

609-
sprintf(result[j++], "%4u", readl_relaxed(ring->tqp->io_base +
609+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
610610
HNS3_RING_RX_RING_TAIL_REG));
611611

612-
sprintf(result[j++], "%4u", readl_relaxed(ring->tqp->io_base +
612+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
613613
HNS3_RING_RX_RING_HEAD_REG));
614614

615-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
615+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
616616
HNS3_RING_RX_RING_FBDNUM_REG));
617617

618-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
618+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
619619
HNS3_RING_RX_RING_PKTNUM_RECORD_REG));
620-
sprintf(result[j++], "%9u", ring->rx_copybreak);
620+
sprintf(result[j++], "%u", ring->rx_copybreak);
621621

622-
sprintf(result[j++], "%7s", readl_relaxed(ring->tqp->io_base +
622+
sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base +
623623
HNS3_RING_EN_REG) ? "on" : "off");
624624

625625
if (hnae3_ae_dev_tqp_txrx_indep_supported(ae_dev))
626-
sprintf(result[j++], "%10s", readl_relaxed(ring->tqp->io_base +
626+
sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base +
627627
HNS3_RING_RX_EN_REG) ? "on" : "off");
628628
else
629-
sprintf(result[j++], "%10s", "NA");
629+
sprintf(result[j++], "%s", "NA");
630630

631631
base_add_h = readl_relaxed(ring->tqp->io_base +
632632
HNS3_RING_RX_RING_BASEADDR_H_REG);
@@ -700,36 +700,36 @@ static void hns3_dump_tx_queue_info(struct hns3_enet_ring *ring,
700700
u32 base_add_l, base_add_h;
701701
u32 j = 0;
702702

703-
sprintf(result[j++], "%8u", index);
704-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
703+
sprintf(result[j++], "%u", index);
704+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
705705
HNS3_RING_TX_RING_BD_NUM_REG));
706706

707-
sprintf(result[j++], "%2u", readl_relaxed(ring->tqp->io_base +
707+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
708708
HNS3_RING_TX_RING_TC_REG));
709709

710-
sprintf(result[j++], "%4u", readl_relaxed(ring->tqp->io_base +
710+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
711711
HNS3_RING_TX_RING_TAIL_REG));
712712

713-
sprintf(result[j++], "%4u", readl_relaxed(ring->tqp->io_base +
713+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
714714
HNS3_RING_TX_RING_HEAD_REG));
715715

716-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
716+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
717717
HNS3_RING_TX_RING_FBDNUM_REG));
718718

719-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
719+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
720720
HNS3_RING_TX_RING_OFFSET_REG));
721721

722-
sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base +
722+
sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base +
723723
HNS3_RING_TX_RING_PKTNUM_RECORD_REG));
724724

725-
sprintf(result[j++], "%7s", readl_relaxed(ring->tqp->io_base +
725+
sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base +
726726
HNS3_RING_EN_REG) ? "on" : "off");
727727

728728
if (hnae3_ae_dev_tqp_txrx_indep_supported(ae_dev))
729-
sprintf(result[j++], "%10s", readl_relaxed(ring->tqp->io_base +
729+
sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base +
730730
HNS3_RING_TX_EN_REG) ? "on" : "off");
731731
else
732-
sprintf(result[j++], "%10s", "NA");
732+
sprintf(result[j++], "%s", "NA");
733733

734734
base_add_h = readl_relaxed(ring->tqp->io_base +
735735
HNS3_RING_TX_RING_BASEADDR_H_REG);
@@ -848,15 +848,15 @@ static void hns3_dump_rx_bd_info(struct hns3_nic_priv *priv,
848848
{
849849
unsigned int j = 0;
850850

851-
sprintf(result[j++], "%5d", idx);
851+
sprintf(result[j++], "%d", idx);
852852
sprintf(result[j++], "%#x", le32_to_cpu(desc->rx.l234_info));
853-
sprintf(result[j++], "%7u", le16_to_cpu(desc->rx.pkt_len));
854-
sprintf(result[j++], "%4u", le16_to_cpu(desc->rx.size));
853+
sprintf(result[j++], "%u", le16_to_cpu(desc->rx.pkt_len));
854+
sprintf(result[j++], "%u", le16_to_cpu(desc->rx.size));
855855
sprintf(result[j++], "%#x", le32_to_cpu(desc->rx.rss_hash));
856-
sprintf(result[j++], "%5u", le16_to_cpu(desc->rx.fd_id));
857-
sprintf(result[j++], "%8u", le16_to_cpu(desc->rx.vlan_tag));
858-
sprintf(result[j++], "%15u", le16_to_cpu(desc->rx.o_dm_vlan_id_fb));
859-
sprintf(result[j++], "%11u", le16_to_cpu(desc->rx.ot_vlan_tag));
856+
sprintf(result[j++], "%u", le16_to_cpu(desc->rx.fd_id));
857+
sprintf(result[j++], "%u", le16_to_cpu(desc->rx.vlan_tag));
858+
sprintf(result[j++], "%u", le16_to_cpu(desc->rx.o_dm_vlan_id_fb));
859+
sprintf(result[j++], "%u", le16_to_cpu(desc->rx.ot_vlan_tag));
860860
sprintf(result[j++], "%#x", le32_to_cpu(desc->rx.bd_base_info));
861861
if (test_bit(HNS3_NIC_STATE_RXD_ADV_LAYOUT_ENABLE, &priv->state)) {
862862
u32 ol_info = le32_to_cpu(desc->rx.ol_info);
@@ -930,19 +930,19 @@ static void hns3_dump_tx_bd_info(struct hns3_nic_priv *priv,
930930
{
931931
unsigned int j = 0;
932932

933-
sprintf(result[j++], "%6d", idx);
933+
sprintf(result[j++], "%d", idx);
934934
sprintf(result[j++], "%#llx", le64_to_cpu(desc->addr));
935-
sprintf(result[j++], "%5u", le16_to_cpu(desc->tx.vlan_tag));
936-
sprintf(result[j++], "%5u", le16_to_cpu(desc->tx.send_size));
935+
sprintf(result[j++], "%u", le16_to_cpu(desc->tx.vlan_tag));
936+
sprintf(result[j++], "%u", le16_to_cpu(desc->tx.send_size));
937937
sprintf(result[j++], "%#x",
938938
le32_to_cpu(desc->tx.type_cs_vlan_tso_len));
939-
sprintf(result[j++], "%5u", le16_to_cpu(desc->tx.outer_vlan_tag));
940-
sprintf(result[j++], "%5u", le16_to_cpu(desc->tx.tv));
941-
sprintf(result[j++], "%10u",
939+
sprintf(result[j++], "%u", le16_to_cpu(desc->tx.outer_vlan_tag));
940+
sprintf(result[j++], "%u", le16_to_cpu(desc->tx.tv));
941+
sprintf(result[j++], "%u",
942942
le32_to_cpu(desc->tx.ol_type_vlan_len_msec));
943943
sprintf(result[j++], "%#x", le32_to_cpu(desc->tx.paylen_ol4cs));
944944
sprintf(result[j++], "%#x", le16_to_cpu(desc->tx.bdtp_fe_sc_vld_ra_ri));
945-
sprintf(result[j++], "%5u", le16_to_cpu(desc->tx.mss_hw_csum));
945+
sprintf(result[j++], "%u", le16_to_cpu(desc->tx.mss_hw_csum));
946946
}
947947

948948
static int hns3_dbg_tx_bd_info(struct hns3_dbg_data *d, char *buf, int len)

0 commit comments

Comments
 (0)