Skip to content

Commit 68632c5

Browse files
tgupdate: merge t/selftests-bpf-Add-bpf_bkup-scheduler into t/selftests-bpf-Add-bpf_bkup-test base
2 parents 942c077 + bad5e3b commit 68632c5

Some content is hidden

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

64 files changed

+3445
-3175
lines changed

drivers/i2c/i2c-core-base.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,6 +2236,20 @@ int i2c_get_device_id(const struct i2c_client *client,
22362236
}
22372237
EXPORT_SYMBOL_GPL(i2c_get_device_id);
22382238

2239+
/**
2240+
* i2c_client_get_device_id - get the driver match table entry of a device
2241+
* @client: the device to query. The device must be bound to a driver
2242+
*
2243+
* Returns a pointer to the matching entry if found, NULL otherwise.
2244+
*/
2245+
const struct i2c_device_id *i2c_client_get_device_id(const struct i2c_client *client)
2246+
{
2247+
const struct i2c_driver *drv = to_i2c_driver(client->dev.driver);
2248+
2249+
return i2c_match_id(drv->id_table, client);
2250+
}
2251+
EXPORT_SYMBOL_GPL(i2c_client_get_device_id);
2252+
22392253
/* ----------------------------------------------------
22402254
* the i2c address scanning function
22412255
* Will not work for 10-bit addresses!

drivers/net/dsa/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ config NET_DSA_BCM_SF2
1818

1919
config NET_DSA_LOOP
2020
tristate "DSA mock-up Ethernet switch chip support"
21+
select NET_DSA_TAG_NONE
2122
select FIXED_PHY
2223
help
2324
This enables support for a fake mock-up switch chip which
@@ -99,6 +100,7 @@ config NET_DSA_SMSC_LAN9303_MDIO
99100

100101
config NET_DSA_VITESSE_VSC73XX
101102
tristate
103+
select NET_DSA_TAG_NONE
102104
select FIXED_PHY
103105
select VITESSE_PHY
104106
select GPIOLIB

drivers/net/dsa/b53/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
menuconfig B53
33
tristate "Broadcom BCM53xx managed switch support"
44
depends on NET_DSA
5+
select NET_DSA_TAG_NONE
56
select NET_DSA_TAG_BRCM
67
select NET_DSA_TAG_BRCM_LEGACY
78
select NET_DSA_TAG_BRCM_PREPEND

drivers/net/dsa/microchip/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ menuconfig NET_DSA_MICROCHIP_KSZ_COMMON
33
tristate "Microchip KSZ8795/KSZ9477/LAN937x series switch support"
44
depends on NET_DSA
55
select NET_DSA_TAG_KSZ
6+
select NET_DSA_TAG_NONE
67
help
78
This driver adds support for Microchip KSZ9477 series switch and
89
KSZ8795/KSZ88x3 switch chips.

drivers/net/dsa/ocelot/felix.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,6 @@ static int felix_init_structs(struct felix *felix, int num_phys_ports)
13631363
return -ENOMEM;
13641364

13651365
ocelot->map = felix->info->map;
1366-
ocelot->stats_layout = felix->info->stats_layout;
13671366
ocelot->num_mact_rows = felix->info->num_mact_rows;
13681367
ocelot->vcap = felix->info->vcap;
13691368
ocelot->vcap_pol.base = felix->info->vcap_pol_base;

drivers/net/dsa/ocelot/felix.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct felix_info {
2828
const struct ocelot_ops *ops;
2929
const u32 *port_modes;
3030
int num_mact_rows;
31-
const struct ocelot_stat_layout *stats_layout;
3231
int num_ports;
3332
int num_tx_queues;
3433
struct vcap_props *vcap;

drivers/net/dsa/ocelot/felix_vsc9959.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,6 @@ static const struct reg_field vsc9959_regfields[REGFIELD_MAX] = {
565565
[SYS_PAUSE_CFG_PAUSE_ENA] = REG_FIELD_ID(SYS_PAUSE_CFG, 0, 1, 7, 4),
566566
};
567567

568-
static const struct ocelot_stat_layout vsc9959_stats_layout[OCELOT_NUM_STATS] = {
569-
OCELOT_COMMON_STATS,
570-
};
571-
572568
static const struct vcap_field vsc9959_vcap_es0_keys[] = {
573569
[VCAP_ES0_EGR_PORT] = { 0, 3},
574570
[VCAP_ES0_IGR_PORT] = { 3, 3},
@@ -2546,7 +2542,6 @@ static const struct felix_info felix_info_vsc9959 = {
25462542
.regfields = vsc9959_regfields,
25472543
.map = vsc9959_regmap,
25482544
.ops = &vsc9959_ops,
2549-
.stats_layout = vsc9959_stats_layout,
25502545
.vcap = vsc9959_vcap_props,
25512546
.vcap_pol_base = VSC9959_VCAP_POLICER_BASE,
25522547
.vcap_pol_max = VSC9959_VCAP_POLICER_MAX,

drivers/net/dsa/ocelot/seville_vsc9953.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,6 @@ static const struct reg_field vsc9953_regfields[REGFIELD_MAX] = {
543543
[SYS_PAUSE_CFG_PAUSE_ENA] = REG_FIELD_ID(SYS_PAUSE_CFG, 0, 1, 11, 4),
544544
};
545545

546-
static const struct ocelot_stat_layout vsc9953_stats_layout[OCELOT_NUM_STATS] = {
547-
OCELOT_COMMON_STATS,
548-
};
549-
550546
static const struct vcap_field vsc9953_vcap_es0_keys[] = {
551547
[VCAP_ES0_EGR_PORT] = { 0, 4},
552548
[VCAP_ES0_IGR_PORT] = { 4, 4},
@@ -970,7 +966,6 @@ static const struct felix_info seville_info_vsc9953 = {
970966
.regfields = vsc9953_regfields,
971967
.map = vsc9953_regmap,
972968
.ops = &vsc9953_ops,
973-
.stats_layout = vsc9953_stats_layout,
974969
.vcap = vsc9953_vcap_props,
975970
.vcap_pol_base = VSC9953_VCAP_POLICER_BASE,
976971
.vcap_pol_max = VSC9953_VCAP_POLICER_MAX,

drivers/net/ethernet/marvell/octeontx2/af/mbox.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ M(NPC_MCAM_GET_STATS, 0x6012, npc_mcam_entry_stats, \
245245
M(NPC_GET_SECRET_KEY, 0x6013, npc_get_secret_key, \
246246
npc_get_secret_key_req, \
247247
npc_get_secret_key_rsp) \
248+
M(NPC_GET_FIELD_STATUS, 0x6014, npc_get_field_status, \
249+
npc_get_field_status_req, \
250+
npc_get_field_status_rsp) \
248251
/* NIX mbox IDs (range 0x8000 - 0xFFFF) */ \
249252
M(NIX_LF_ALLOC, 0x8000, nix_lf_alloc, \
250253
nix_lf_alloc_req, nix_lf_alloc_rsp) \
@@ -1541,6 +1544,17 @@ struct ptp_rsp {
15411544
u64 clk;
15421545
};
15431546

1547+
struct npc_get_field_status_req {
1548+
struct mbox_msghdr hdr;
1549+
u8 intf;
1550+
u8 field;
1551+
};
1552+
1553+
struct npc_get_field_status_rsp {
1554+
struct mbox_msghdr hdr;
1555+
u8 enable;
1556+
};
1557+
15441558
struct set_vf_perm {
15451559
struct mbox_msghdr hdr;
15461560
u16 vf;

drivers/net/ethernet/marvell/octeontx2/af/rvu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ int npc_install_mcam_drop_rule(struct rvu *rvu, int mcam_idx, u16 *counter_idx,
851851
u64 chan_val, u64 chan_mask, u64 exact_val, u64 exact_mask,
852852
u64 bcast_mcast_val, u64 bcast_mcast_mask);
853853
void npc_mcam_rsrcs_reserve(struct rvu *rvu, int blkaddr, int entry_idx);
854+
bool npc_is_feature_supported(struct rvu *rvu, u64 features, u8 intf);
854855

855856
/* CPT APIs */
856857
int rvu_cpt_register_interrupts(struct rvu *rvu);

0 commit comments

Comments
 (0)