Skip to content

Commit 3332035

Browse files
committed
tgupdate: merge t/DO-NOT-MERGE-mptcp-enabled-by-default into t/upstream base
2 parents 9fa95a1 + 757b801 commit 3332035

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,6 @@ static void xgbe_phy_free_phy_device(struct xgbe_prv_data *pdata)
923923

924924
static bool xgbe_phy_finisar_phy_quirks(struct xgbe_prv_data *pdata)
925925
{
926-
__ETHTOOL_DECLARE_LINK_MODE_MASK(supported) = { 0, };
927926
struct xgbe_phy_data *phy_data = pdata->phy_data;
928927
unsigned int phy_id = phy_data->phydev->phy_id;
929928

@@ -945,14 +944,7 @@ static bool xgbe_phy_finisar_phy_quirks(struct xgbe_prv_data *pdata)
945944
phy_write(phy_data->phydev, 0x04, 0x0d01);
946945
phy_write(phy_data->phydev, 0x00, 0x9140);
947946

948-
linkmode_set_bit_array(phy_10_100_features_array,
949-
ARRAY_SIZE(phy_10_100_features_array),
950-
supported);
951-
linkmode_set_bit_array(phy_gbit_features_array,
952-
ARRAY_SIZE(phy_gbit_features_array),
953-
supported);
954-
955-
linkmode_copy(phy_data->phydev->supported, supported);
947+
linkmode_copy(phy_data->phydev->supported, PHY_GBIT_FEATURES);
956948

957949
phy_support_asym_pause(phy_data->phydev);
958950

@@ -964,7 +956,6 @@ static bool xgbe_phy_finisar_phy_quirks(struct xgbe_prv_data *pdata)
964956

965957
static bool xgbe_phy_belfuse_phy_quirks(struct xgbe_prv_data *pdata)
966958
{
967-
__ETHTOOL_DECLARE_LINK_MODE_MASK(supported) = { 0, };
968959
struct xgbe_phy_data *phy_data = pdata->phy_data;
969960
struct xgbe_sfp_eeprom *sfp_eeprom = &phy_data->sfp_eeprom;
970961
unsigned int phy_id = phy_data->phydev->phy_id;
@@ -1028,13 +1019,7 @@ static bool xgbe_phy_belfuse_phy_quirks(struct xgbe_prv_data *pdata)
10281019
reg = phy_read(phy_data->phydev, 0x00);
10291020
phy_write(phy_data->phydev, 0x00, reg & ~0x00800);
10301021

1031-
linkmode_set_bit_array(phy_10_100_features_array,
1032-
ARRAY_SIZE(phy_10_100_features_array),
1033-
supported);
1034-
linkmode_set_bit_array(phy_gbit_features_array,
1035-
ARRAY_SIZE(phy_gbit_features_array),
1036-
supported);
1037-
linkmode_copy(phy_data->phydev->supported, supported);
1022+
linkmode_copy(phy_data->phydev->supported, PHY_GBIT_FEATURES);
10381023
phy_support_asym_pause(phy_data->phydev);
10391024

10401025
netif_dbg(pdata, drv, pdata->netdev,

drivers/net/pcs/pcs-xpcs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,9 @@ static int xpcs_config_aneg_c37_sgmii(struct dw_xpcs *xpcs,
710710
if (ret < 0)
711711
return ret;
712712

713-
mask = DW_VR_MII_DIG_CTRL1_MAC_AUTO_SW;
713+
val = 0;
714+
mask = DW_VR_MII_DIG_CTRL1_2G5_EN | DW_VR_MII_DIG_CTRL1_MAC_AUTO_SW;
715+
714716
if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED)
715717
val = DW_VR_MII_DIG_CTRL1_MAC_AUTO_SW;
716718

include/net/page_pool/helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static inline long page_pool_unref_page(struct page *page, long nr)
307307

308308
static inline void page_pool_ref_netmem(netmem_ref netmem)
309309
{
310-
atomic_long_inc(&netmem_to_page(netmem)->pp_ref_count);
310+
atomic_long_inc(netmem_get_pp_ref_count_ref(netmem));
311311
}
312312

313313
static inline void page_pool_ref_page(struct page *page)

tools/testing/selftests/drivers/net/netdevsim/tc-mq-visibility.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,12 @@ for root in mq mqprio; do
5858
ethtool -L $NDEV combined 4
5959
n_child_assert 4 "One real queue, rest default"
6060

61-
# Graft some
62-
tcq replace parent 100:1 handle 204:
63-
n_child_assert 3 "Grafted"
61+
# Remove real one
62+
tcq del parent 100:4 handle 204:
63+
64+
# Replace default with pfifo
65+
tcq replace parent 100:1 handle 205: pfifo limit 1000
66+
n_child_assert 3 "Deleting real one, replacing default one with pfifo"
6467

6568
ethtool -L $NDEV combined 1
6669
n_child_assert 1 "Grafted, one"

0 commit comments

Comments
 (0)