Skip to content

Commit bc10810

Browse files
committed
tgupdate: merge t/DO-NOT-MERGE-mptcp-use-kmalloc-on-kasan-build into t/DO-NOT-MERGE-mptcp-enabled-by-default base
2 parents 441e5ae + 651f61b commit bc10810

File tree

107 files changed

+3174
-629
lines changed

Some content is hidden

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

107 files changed

+3174
-629
lines changed

Documentation/netlink/specs/ethtool.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ attribute-sets:
332332
-
333333
name: tx-push-buf-len-max
334334
type: u32
335+
-
336+
name: hds-thresh
337+
type: u32
338+
-
339+
name: hds-thresh-max
340+
type: u32
335341

336342
-
337343
name: mm-stat
@@ -1777,6 +1783,8 @@ operations:
17771783
- rx-push
17781784
- tx-push-buf-len
17791785
- tx-push-buf-len-max
1786+
- hds-thresh
1787+
- hds-thresh-max
17801788
dump: *ring-get-op
17811789
-
17821790
name: rings-set

Documentation/networking/ethtool-netlink.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,10 @@ Kernel response contents:
899899
``ETHTOOL_A_RINGS_RX_PUSH`` u8 flag of RX Push mode
900900
``ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN`` u32 size of TX push buffer
901901
``ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN_MAX`` u32 max size of TX push buffer
902+
``ETHTOOL_A_RINGS_HDS_THRESH`` u32 threshold of
903+
header / data split
904+
``ETHTOOL_A_RINGS_HDS_THRESH_MAX`` u32 max threshold of
905+
header / data split
902906
======================================= ====== ===========================
903907

904908
``ETHTOOL_A_RINGS_TCP_DATA_SPLIT`` indicates whether the device is usable with
@@ -941,10 +945,12 @@ Request contents:
941945
``ETHTOOL_A_RINGS_RX_JUMBO`` u32 size of RX jumbo ring
942946
``ETHTOOL_A_RINGS_TX`` u32 size of TX ring
943947
``ETHTOOL_A_RINGS_RX_BUF_LEN`` u32 size of buffers on the ring
948+
``ETHTOOL_A_RINGS_TCP_DATA_SPLIT`` u8 TCP header / data split
944949
``ETHTOOL_A_RINGS_CQE_SIZE`` u32 Size of TX/RX CQE
945950
``ETHTOOL_A_RINGS_TX_PUSH`` u8 flag of TX Push mode
946951
``ETHTOOL_A_RINGS_RX_PUSH`` u8 flag of RX Push mode
947952
``ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN`` u32 size of TX push buffer
953+
``ETHTOOL_A_RINGS_HDS_THRESH`` u32 threshold of header / data split
948954
==================================== ====== ===========================
949955

950956
Kernel checks that requested ring sizes do not exceed limits reported by
@@ -961,6 +967,10 @@ A bigger CQE can have more receive buffer pointers, and in turn the NIC can
961967
transfer a bigger frame from wire. Based on the NIC hardware, the overall
962968
completion queue size can be adjusted in the driver if CQE size is modified.
963969

970+
``ETHTOOL_A_RINGS_HDS_THRESH`` specifies the threshold value of
971+
header / data split feature. If a received packet size is larger than this
972+
threshold value, header and data will be split.
973+
964974
CHANNELS_GET
965975
============
966976

drivers/net/dsa/b53/b53_serdes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ static void b53_serdes_an_restart(struct phylink_pcs *pcs)
9999
SERDES_MII_BLK, reg);
100100
}
101101

102-
static void b53_serdes_get_state(struct phylink_pcs *pcs,
103-
struct phylink_link_state *state)
102+
static void b53_serdes_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
103+
struct phylink_link_state *state)
104104
{
105105
struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev;
106106
u8 lane = pcs_to_b53_pcs(pcs)->lane;

drivers/net/dsa/mt7530.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,7 @@ static int mt753x_pcs_validate(struct phylink_pcs *pcs,
29942994
return 0;
29952995
}
29962996

2997-
static void mt7530_pcs_get_state(struct phylink_pcs *pcs,
2997+
static void mt7530_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
29982998
struct phylink_link_state *state)
29992999
{
30003000
struct mt7530_priv *priv = pcs_to_mt753x_pcs(pcs)->priv;

drivers/net/dsa/mv88e6xxx/pcs-6185.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static irqreturn_t mv88e6185_pcs_handle_irq(int irq, void *dev_id)
5555
}
5656

5757
static void mv88e6185_pcs_get_state(struct phylink_pcs *pcs,
58+
unsigned int neg_mode,
5859
struct phylink_link_state *state)
5960
{
6061
struct mv88e6185_pcs *mpcs = pcs_to_mv88e6185_pcs(pcs);

drivers/net/dsa/mv88e6xxx/pcs-6352.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ static void marvell_c22_pcs_disable(struct phylink_pcs *pcs)
158158
}
159159

160160
static void marvell_c22_pcs_get_state(struct phylink_pcs *pcs,
161+
unsigned int neg_mode,
161162
struct phylink_link_state *state)
162163
{
163164
struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs);

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ static int mv88e639x_sgmii_pcs_post_config(struct phylink_pcs *pcs,
257257
}
258258

259259
static void mv88e639x_sgmii_pcs_get_state(struct phylink_pcs *pcs,
260+
unsigned int neg_mode,
260261
struct phylink_link_state *state)
261262
{
262263
struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
@@ -395,6 +396,7 @@ static void mv88e639x_xg_pcs_disable(struct mv88e639x_pcs *mpcs)
395396
}
396397

397398
static void mv88e639x_xg_pcs_get_state(struct phylink_pcs *pcs,
399+
unsigned int neg_mode,
398400
struct phylink_link_state *state)
399401
{
400402
struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
@@ -889,14 +891,15 @@ static int mv88e6393x_xg_pcs_post_config(struct phylink_pcs *pcs,
889891
}
890892

891893
static void mv88e6393x_xg_pcs_get_state(struct phylink_pcs *pcs,
894+
unsigned int neg_mode,
892895
struct phylink_link_state *state)
893896
{
894897
struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
895898
u16 status, lp_status;
896899
int err;
897900

898901
if (state->interface != PHY_INTERFACE_MODE_USXGMII)
899-
return mv88e639x_xg_pcs_get_state(pcs, state);
902+
return mv88e639x_xg_pcs_get_state(pcs, neg_mode, state);
900903

901904
state->link = false;
902905

drivers/net/dsa/qca/qca8k-8xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ static struct qca8k_pcs *pcs_to_qca8k_pcs(struct phylink_pcs *pcs)
14911491
return container_of(pcs, struct qca8k_pcs, pcs);
14921492
}
14931493

1494-
static void qca8k_pcs_get_state(struct phylink_pcs *pcs,
1494+
static void qca8k_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
14951495
struct phylink_link_state *state)
14961496
{
14971497
struct qca8k_priv *priv = pcs_to_qca8k_pcs(pcs)->priv;

drivers/net/ethernet/amd/pcnet32.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static void pcnet32_netif_start(struct net_device *dev)
462462
val = lp->a->read_csr(ioaddr, CSR3);
463463
val &= 0x00ff;
464464
lp->a->write_csr(ioaddr, CSR3, val);
465-
napi_enable(&lp->napi);
465+
napi_enable_locked(&lp->napi);
466466
}
467467

468468
/*
@@ -889,6 +889,7 @@ static int pcnet32_set_ringparam(struct net_device *dev,
889889
if (netif_running(dev))
890890
pcnet32_netif_stop(dev);
891891

892+
netdev_lock(dev);
892893
spin_lock_irqsave(&lp->lock, flags);
893894
lp->a->write_csr(ioaddr, CSR0, CSR0_STOP); /* stop the chip */
894895

@@ -920,6 +921,7 @@ static int pcnet32_set_ringparam(struct net_device *dev,
920921
}
921922

922923
spin_unlock_irqrestore(&lp->lock, flags);
924+
netdev_unlock(dev);
923925

924926
netif_info(lp, drv, dev, "Ring Param Settings: RX: %d, TX: %d\n",
925927
lp->rx_ring_size, lp->tx_ring_size);
@@ -985,6 +987,7 @@ static int pcnet32_loopback_test(struct net_device *dev, uint64_t * data1)
985987
if (netif_running(dev))
986988
pcnet32_netif_stop(dev);
987989

990+
netdev_lock(dev);
988991
spin_lock_irqsave(&lp->lock, flags);
989992
lp->a->write_csr(ioaddr, CSR0, CSR0_STOP); /* stop the chip */
990993

@@ -1122,6 +1125,7 @@ static int pcnet32_loopback_test(struct net_device *dev, uint64_t * data1)
11221125
lp->a->write_bcr(ioaddr, 20, 4); /* return to 16bit mode */
11231126
}
11241127
spin_unlock_irqrestore(&lp->lock, flags);
1128+
netdev_unlock(dev);
11251129

11261130
return rc;
11271131
} /* end pcnet32_loopback_test */
@@ -2101,6 +2105,7 @@ static int pcnet32_open(struct net_device *dev)
21012105
return -EAGAIN;
21022106
}
21032107

2108+
netdev_lock(dev);
21042109
spin_lock_irqsave(&lp->lock, flags);
21052110
/* Check for a valid station address */
21062111
if (!is_valid_ether_addr(dev->dev_addr)) {
@@ -2266,7 +2271,7 @@ static int pcnet32_open(struct net_device *dev)
22662271
goto err_free_ring;
22672272
}
22682273

2269-
napi_enable(&lp->napi);
2274+
napi_enable_locked(&lp->napi);
22702275

22712276
/* Re-initialize the PCNET32, and start it when done. */
22722277
lp->a->write_csr(ioaddr, 1, (lp->init_dma_addr & 0xffff));
@@ -2300,6 +2305,7 @@ static int pcnet32_open(struct net_device *dev)
23002305
lp->a->read_csr(ioaddr, CSR0));
23012306

23022307
spin_unlock_irqrestore(&lp->lock, flags);
2308+
netdev_unlock(dev);
23032309

23042310
return 0; /* Always succeed */
23052311

@@ -2315,6 +2321,7 @@ static int pcnet32_open(struct net_device *dev)
23152321

23162322
err_free_irq:
23172323
spin_unlock_irqrestore(&lp->lock, flags);
2324+
netdev_unlock(dev);
23182325
free_irq(dev->irq, dev);
23192326
return rc;
23202327
}

drivers/net/ethernet/broadcom/asp2/bcmasp.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,6 @@ struct bcmasp_intf {
348348
/* Used if per intf wol irq */
349349
int wol_irq;
350350
unsigned int wol_irq_enabled:1;
351-
352-
struct ethtool_keee eee;
353351
};
354352

355353
#define NUM_NET_FILTERS 32
@@ -601,5 +599,4 @@ int bcmasp_netfilt_get_all_active(struct bcmasp_intf *intf, u32 *rule_locs,
601599

602600
void bcmasp_netfilt_suspend(struct bcmasp_intf *intf);
603601

604-
void bcmasp_eee_enable_set(struct bcmasp_intf *intf, bool enable);
605602
#endif

0 commit comments

Comments
 (0)