Skip to content

Commit 2f12da6

Browse files
committed
tgupdate: merge t/DO-NOT-MERGE-mptcp-enabled-by-default into t/upstream base
2 parents 6e4fcbf + bf4e404 commit 2f12da6

Some content is hidden

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

53 files changed

+931
-699
lines changed

drivers/net/dsa/mv88e6xxx/pcs-639x.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/interrupt.h>
1010
#include <linux/irqdomain.h>
1111
#include <linux/mii.h>
12+
#include <linux/string_choices.h>
1213

1314
#include "chip.h"
1415
#include "global2.h"
@@ -750,7 +751,7 @@ static int mv88e6393x_sgmii_apply_2500basex_an(struct mv88e639x_pcs *mpcs,
750751
if (err)
751752
dev_err(mpcs->mdio.dev.parent,
752753
"failed to %s 2500basex fix: %pe\n",
753-
enable ? "enable" : "disable", ERR_PTR(err));
754+
str_enable_disable(enable), ERR_PTR(err));
754755

755756
return err;
756757
}

drivers/net/dsa/mv88e6xxx/port.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/phy.h>
1414
#include <linux/phylink.h>
1515
#include <linux/property.h>
16+
#include <linux/string_choices.h>
1617

1718
#include "chip.h"
1819
#include "global2.h"
@@ -176,7 +177,7 @@ int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link)
176177

177178
dev_dbg(chip->dev, "p%d: %s link %s\n", port,
178179
reg & MV88E6XXX_PORT_MAC_CTL_FORCE_LINK ? "Force" : "Unforce",
179-
reg & MV88E6XXX_PORT_MAC_CTL_LINK_UP ? "up" : "down");
180+
str_up_down(reg & MV88E6XXX_PORT_MAC_CTL_LINK_UP));
180181

181182
return 0;
182183
}

drivers/net/dsa/realtek/rtl8366rb.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/irqchip/chained_irq.h>
2222
#include <linux/of_irq.h>
2323
#include <linux/regmap.h>
24+
#include <linux/string_choices.h>
2425

2526
#include "realtek.h"
2627
#include "realtek-smi.h"
@@ -1522,7 +1523,7 @@ static int rtl8366rb_vlan_filtering(struct dsa_switch *ds, int port,
15221523
rb = priv->chip_data;
15231524

15241525
dev_dbg(priv->dev, "port %d: %s VLAN filtering\n", port,
1525-
vlan_filtering ? "enable" : "disable");
1526+
str_enable_disable(vlan_filtering));
15261527

15271528
/* If the port is not in the member set, the frame will be dropped */
15281529
ret = regmap_update_bits(priv->map, RTL8366RB_VLAN_INGRESS_CTRL2_REG,
@@ -1884,15 +1885,15 @@ static bool rtl8366rb_is_vlan_valid(struct realtek_priv *priv, unsigned int vlan
18841885

18851886
static int rtl8366rb_enable_vlan(struct realtek_priv *priv, bool enable)
18861887
{
1887-
dev_dbg(priv->dev, "%s VLAN\n", enable ? "enable" : "disable");
1888+
dev_dbg(priv->dev, "%s VLAN\n", str_enable_disable(enable));
18881889
return regmap_update_bits(priv->map,
18891890
RTL8366RB_SGCR, RTL8366RB_SGCR_EN_VLAN,
18901891
enable ? RTL8366RB_SGCR_EN_VLAN : 0);
18911892
}
18921893

18931894
static int rtl8366rb_enable_vlan4k(struct realtek_priv *priv, bool enable)
18941895
{
1895-
dev_dbg(priv->dev, "%s VLAN 4k\n", enable ? "enable" : "disable");
1896+
dev_dbg(priv->dev, "%s VLAN 4k\n", str_enable_disable(enable));
18961897
return regmap_update_bits(priv->map, RTL8366RB_SGCR,
18971898
RTL8366RB_SGCR_EN_VLAN_4KTB,
18981899
enable ? RTL8366RB_SGCR_EN_VLAN_4KTB : 0);

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4609,8 +4609,13 @@ void bnxt_set_tpa_flags(struct bnxt *bp)
46094609

46104610
static void bnxt_init_ring_params(struct bnxt *bp)
46114611
{
4612+
unsigned int rx_size;
4613+
46124614
bp->rx_copybreak = BNXT_DEFAULT_RX_COPYBREAK;
4613-
bp->dev->ethtool->hds_thresh = BNXT_DEFAULT_RX_COPYBREAK;
4615+
/* Try to fit 4 chunks into a 4k page */
4616+
rx_size = SZ_1K -
4617+
NET_SKB_PAD - SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
4618+
bp->dev->cfg->hds_thresh = max(BNXT_DEFAULT_RX_COPYBREAK, rx_size);
46144619
}
46154620

46164621
/* bp->rx_ring_size, bp->tx_ring_size, dev->mtu, BNXT_FLAG_{G|L}RO flags must
@@ -4671,9 +4676,10 @@ void bnxt_set_ring_params(struct bnxt *bp)
46714676
ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8) -
46724677
SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
46734678
} else {
4674-
rx_size = SKB_DATA_ALIGN(max(BNXT_DEFAULT_RX_COPYBREAK,
4675-
bp->rx_copybreak) +
4676-
NET_IP_ALIGN);
4679+
rx_size = max3(BNXT_DEFAULT_RX_COPYBREAK,
4680+
bp->rx_copybreak,
4681+
bp->dev->cfg_pending->hds_thresh);
4682+
rx_size = SKB_DATA_ALIGN(rx_size + NET_IP_ALIGN);
46774683
rx_space = rx_size + NET_SKB_PAD +
46784684
SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
46794685
}
@@ -6585,7 +6591,7 @@ static void bnxt_hwrm_update_rss_hash_cfg(struct bnxt *bp)
65856591

65866592
static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, struct bnxt_vnic_info *vnic)
65876593
{
6588-
u16 hds_thresh = (u16)bp->dev->ethtool->hds_thresh;
6594+
u16 hds_thresh = (u16)bp->dev->cfg_pending->hds_thresh;
65896595
struct hwrm_vnic_plcmodes_cfg_input *req;
65906596
int rc;
65916597

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <linux/ptp_clock_kernel.h>
2525
#include <linux/net_tstamp.h>
2626
#include <linux/timecounter.h>
27+
#include <net/netdev_queues.h>
2728
#include <net/netlink.h>
2829
#include "bnxt_hsi.h"
2930
#include "bnxt.h"
@@ -834,7 +835,6 @@ static void bnxt_get_ringparam(struct net_device *dev,
834835
ering->rx_jumbo_pending = bp->rx_agg_ring_size;
835836
ering->tx_pending = bp->tx_ring_size;
836837

837-
kernel_ering->hds_thresh = dev->ethtool->hds_thresh;
838838
kernel_ering->hds_thresh_max = BNXT_HDS_THRESHOLD_MAX;
839839
}
840840

@@ -852,7 +852,7 @@ static int bnxt_set_ringparam(struct net_device *dev,
852852
(ering->tx_pending < BNXT_MIN_TX_DESC_CNT))
853853
return -EINVAL;
854854

855-
hds_config_mod = tcp_data_split != dev->ethtool->hds_config;
855+
hds_config_mod = tcp_data_split != dev->cfg->hds_config;
856856
if (tcp_data_split == ETHTOOL_TCP_DATA_SPLIT_DISABLED && hds_config_mod)
857857
return -EINVAL;
858858

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5644,9 +5644,6 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue)
56445644
skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags,
56455645
buf->page, buf->page_offset, buf1_len,
56465646
priv->dma_conf.dma_buf_sz);
5647-
5648-
/* Data payload appended into SKB */
5649-
skb_mark_for_recycle(skb);
56505647
buf->page = NULL;
56515648
}
56525649

@@ -5656,9 +5653,6 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue)
56565653
skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags,
56575654
buf->sec_page, 0, buf2_len,
56585655
priv->dma_conf.dma_buf_sz);
5659-
5660-
/* Data payload appended into SKB */
5661-
skb_mark_for_recycle(skb);
56625656
buf->sec_page = NULL;
56635657
}
56645658

0 commit comments

Comments
 (0)