Skip to content

Commit 3d03442

Browse files
committed
tgupdate: merge t/DO-NOT-MERGE-mptcp-enabled-by-default into t/upstream base
2 parents 1e198b3 + 69f17ed commit 3d03442

File tree

5 files changed

+60
-12
lines changed

5 files changed

+60
-12
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,8 @@ static int fec_enet_txq_submit_tso(struct fec_enet_priv_tx_q *txq,
840840
struct fec_enet_private *fep = netdev_priv(ndev);
841841
int hdr_len, total_len, data_left;
842842
struct bufdesc *bdp = txq->bd.cur;
843+
struct bufdesc *tmp_bdp;
844+
struct bufdesc_ex *ebdp;
843845
struct tso_t tso;
844846
unsigned int index = 0;
845847
int ret;
@@ -913,7 +915,34 @@ static int fec_enet_txq_submit_tso(struct fec_enet_priv_tx_q *txq,
913915
return 0;
914916

915917
err_release:
916-
/* TODO: Release all used data descriptors for TSO */
918+
/* Release all used data descriptors for TSO */
919+
tmp_bdp = txq->bd.cur;
920+
921+
while (tmp_bdp != bdp) {
922+
/* Unmap data buffers */
923+
if (tmp_bdp->cbd_bufaddr &&
924+
!IS_TSO_HEADER(txq, fec32_to_cpu(tmp_bdp->cbd_bufaddr)))
925+
dma_unmap_single(&fep->pdev->dev,
926+
fec32_to_cpu(tmp_bdp->cbd_bufaddr),
927+
fec16_to_cpu(tmp_bdp->cbd_datlen),
928+
DMA_TO_DEVICE);
929+
930+
/* Clear standard buffer descriptor fields */
931+
tmp_bdp->cbd_sc = 0;
932+
tmp_bdp->cbd_datlen = 0;
933+
tmp_bdp->cbd_bufaddr = 0;
934+
935+
/* Handle extended descriptor if enabled */
936+
if (fep->bufdesc_ex) {
937+
ebdp = (struct bufdesc_ex *)tmp_bdp;
938+
ebdp->cbd_esc = 0;
939+
}
940+
941+
tmp_bdp = fec_enet_get_nextdesc(tmp_bdp, &txq->bd);
942+
}
943+
944+
dev_kfree_skb_any(skb);
945+
917946
return ret;
918947
}
919948

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4432,6 +4432,7 @@ static int mvneta_cpu_online(unsigned int cpu, struct hlist_node *node)
44324432
*/
44334433
if (pp->is_stopped) {
44344434
spin_unlock(&pp->lock);
4435+
netdev_unlock(port->napi.dev);
44354436
return 0;
44364437
}
44374438
netif_tx_stop_all_queues(pp->dev);

drivers/net/phy/marvell-88q2xxx.c

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@
9595

9696
#define MDIO_MMD_PCS_MV_TDR_OFF_CUTOFF 65246
9797

98+
struct mv88q2xxx_priv {
99+
bool enable_temp;
100+
};
101+
98102
struct mmd_val {
99103
int devad;
100104
u32 regnum;
@@ -710,17 +714,12 @@ static const struct hwmon_chip_info mv88q2xxx_hwmon_chip_info = {
710714

711715
static int mv88q2xxx_hwmon_probe(struct phy_device *phydev)
712716
{
717+
struct mv88q2xxx_priv *priv = phydev->priv;
713718
struct device *dev = &phydev->mdio.dev;
714719
struct device *hwmon;
715720
char *hwmon_name;
716-
int ret;
717-
718-
/* Enable temperature sense */
719-
ret = phy_modify_mmd(phydev, MDIO_MMD_PCS, MDIO_MMD_PCS_MV_TEMP_SENSOR2,
720-
MDIO_MMD_PCS_MV_TEMP_SENSOR2_DIS_MASK, 0);
721-
if (ret < 0)
722-
return ret;
723721

722+
priv->enable_temp = true;
724723
hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
725724
if (IS_ERR(hwmon_name))
726725
return PTR_ERR(hwmon_name);
@@ -743,6 +742,14 @@ static int mv88q2xxx_hwmon_probe(struct phy_device *phydev)
743742

744743
static int mv88q2xxx_probe(struct phy_device *phydev)
745744
{
745+
struct mv88q2xxx_priv *priv;
746+
747+
priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
748+
if (!priv)
749+
return -ENOMEM;
750+
751+
phydev->priv = priv;
752+
746753
return mv88q2xxx_hwmon_probe(phydev);
747754
}
748755

@@ -810,6 +817,18 @@ static int mv88q222x_revb1_revb2_config_init(struct phy_device *phydev)
810817

811818
static int mv88q222x_config_init(struct phy_device *phydev)
812819
{
820+
struct mv88q2xxx_priv *priv = phydev->priv;
821+
int ret;
822+
823+
/* Enable temperature sense */
824+
if (priv->enable_temp) {
825+
ret = phy_modify_mmd(phydev, MDIO_MMD_PCS,
826+
MDIO_MMD_PCS_MV_TEMP_SENSOR2,
827+
MDIO_MMD_PCS_MV_TEMP_SENSOR2_DIS_MASK, 0);
828+
if (ret < 0)
829+
return ret;
830+
}
831+
813832
if (phydev->c45_ids.device_ids[MDIO_MMD_PMAPMD] == PHY_ID_88Q2220_REVB0)
814833
return mv88q222x_revb0_config_init(phydev);
815834
else

net/ipv4/ipmr_base.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,6 @@ int mr_table_dump(struct mr_table *mrt, struct sk_buff *skb,
330330
list_for_each_entry(mfc, &mrt->mfc_unres_queue, list) {
331331
if (e < s_e)
332332
goto next_entry2;
333-
if (filter->dev &&
334-
!mr_mfc_uses_dev(mrt, mfc, filter->dev))
335-
goto next_entry2;
336333

337334
err = fill(mrt, skb, NETLINK_CB(cb->skb).portid,
338335
cb->nlh->nlmsg_seq, mfc, RTM_NEWROUTE, flags);

tools/testing/selftests/net/packetdrill/ksft_runner.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ if [[ -n "${KSFT_MACHINE_SLOW}" ]]; then
3939
# xfail tests that are known flaky with dbg config, not fixable.
4040
# still run them for coverage (and expect 100% pass without dbg).
4141
declare -ar xfail_list=(
42+
"tcp_eor_no-coalesce-retrans.pkt"
4243
"tcp_fast_recovery_prr-ss.*.pkt"
44+
"tcp_slow_start_slow-start-after-win-update.pkt"
4345
"tcp_timestamping.*.pkt"
4446
"tcp_user_timeout_user-timeout-probe.pkt"
4547
"tcp_zerocopy_epoll_.*.pkt"
46-
"tcp_tcp_info_tcp-info-*-limited.pkt"
48+
"tcp_tcp_info_tcp-info-.*-limited.pkt"
4749
)
4850
readonly xfail_regex="^($(printf '%s|' "${xfail_list[@]}"))$"
4951
[[ "$script" =~ ${xfail_regex} ]] && failfunc=ktap_test_xfail

0 commit comments

Comments
 (0)