Skip to content

Commit 345464f

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from David Miller: 1) Fix some length checks during OGM processing in batman-adv, from Sven Eckelmann. 2) Fix regression that caused netfilter conntrack sysctls to not be per-netns any more. From Florian Westphal. 3) Use after free in netpoll, from Feng Sun. 4) Guard destruction of pfifo_fast per-cpu qdisc stats with qdisc_is_percpu_stats(), from Davide Caratti. Similar bug is fixed in pfifo_fast_enqueue(). 5) Fix memory leak in mld_del_delrec(), from Eric Dumazet. 6) Handle neigh events on internal ports correctly in nfp, from John Hurley. 7) Clear SKB timestamp in NF flow table code so that it does not confuse fq scheduler. From Florian Westphal. 8) taprio destroy can crash if it is invoked in a failure path of taprio_init(), because the list head isn't setup properly yet and the list del is unconditional. Perform the list add earlier to address this. From Vladimir Oltean. 9) Make sure to reapply vlan filters on device up, in aquantia driver. From Dmitry Bogdanov. 10) sgiseeq driver releases DMA memory using free_page() instead of dma_free_attrs(). From Christophe JAILLET. * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (58 commits) net: seeq: Fix the function used to release some memory in an error handling path enetc: Add missing call to 'pci_free_irq_vectors()' in probe and remove functions net: bcmgenet: use ethtool_op_get_ts_info() tc-testing: don't hardcode 'ip' in nsPlugin.py net: dsa: microchip: add KSZ8563 compatibility string dt-bindings: net: dsa: document additional Microchip KSZ8563 switch net: aquantia: fix out of memory condition on rx side net: aquantia: linkstate irq should be oneshot net: aquantia: reapply vlan filters on up net: aquantia: fix limit of vlan filters net: aquantia: fix removal of vlan 0 net/sched: cbs: Set default link speed to 10 Mbps in cbs_set_port_rate taprio: Set default link speed to 10 Mbps in taprio_set_picos_per_byte taprio: Fix kernel panic in taprio_destroy net: dsa: microchip: fill regmap_config name rxrpc: Fix lack of conn cleanup when local endpoint is cleaned up [ver #2] net: stmmac: dwmac-rk: Don't fail if phy regulator is absent amd-xgbe: Fix error path in xgbe_mod_init() netfilter: nft_meta_bridge: Fix get NFT_META_BRI_IIFVPROTO in network byteorder mac80211: Correctly set noencrypt for PAE frames ...
2 parents 9f159ae + e1e54ec commit 345464f

Some content is hidden

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

89 files changed

+761
-487
lines changed

Documentation/devicetree/bindings/net/dsa/ksz.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Required properties:
1212
- "microchip,ksz8565"
1313
- "microchip,ksz9893"
1414
- "microchip,ksz9563"
15+
- "microchip,ksz8563"
1516

1617
Optional properties:
1718

Documentation/devicetree/bindings/net/macb.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Required properties:
1515
Use "atmel,sama5d4-gem" for the GEM IP (10/100) available on Atmel sama5d4 SoCs.
1616
Use "cdns,zynq-gem" Xilinx Zynq-7xxx SoC.
1717
Use "cdns,zynqmp-gem" for Zynq Ultrascale+ MPSoC.
18-
Use "sifive,fu540-macb" for SiFive FU540-C000 SoC.
18+
Use "sifive,fu540-c000-gem" for SiFive FU540-C000 SoC.
1919
Or the generic form: "cdns,emac".
2020
- reg: Address and length of the register set for the device
21-
For "sifive,fu540-macb", second range is required to specify the
21+
For "sifive,fu540-c000-gem", second range is required to specify the
2222
address and length of the registers for GEMGXL Management block.
2323
- interrupts: Should contain macb interrupt
2424
- phy-mode: See ethernet.txt file in the same directory.

drivers/net/dsa/microchip/ksz9477_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ static const struct of_device_id ksz9477_dt_ids[] = {
8181
{ .compatible = "microchip,ksz9897" },
8282
{ .compatible = "microchip,ksz9893" },
8383
{ .compatible = "microchip,ksz9563" },
84+
{ .compatible = "microchip,ksz8563" },
8485
{},
8586
};
8687
MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);

drivers/net/dsa/microchip/ksz_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ static inline void ksz_pwrite32(struct ksz_device *dev, int port, int offset,
128128

129129
#define KSZ_REGMAP_ENTRY(width, swp, regbits, regpad, regalign) \
130130
{ \
131+
.name = #width, \
131132
.val_bits = (width), \
132133
.reg_stride = (width) / 8, \
133134
.reg_bits = (regbits) + (regalign), \

drivers/net/ethernet/amd/xgbe/xgbe-main.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,19 @@ static int __init xgbe_mod_init(void)
469469

470470
ret = xgbe_platform_init();
471471
if (ret)
472-
return ret;
472+
goto err_platform_init;
473473

474474
ret = xgbe_pci_init();
475475
if (ret)
476-
return ret;
476+
goto err_pci_init;
477477

478478
return 0;
479+
480+
err_pci_init:
481+
xgbe_platform_exit();
482+
err_platform_init:
483+
unregister_netdevice_notifier(&xgbe_netdev_notifier);
484+
return ret;
479485
}
480486

481487
static void __exit xgbe_mod_exit(void)

drivers/net/ethernet/aquantia/atlantic/aq_filters.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ int aq_del_fvlan_by_vlan(struct aq_nic_s *aq_nic, u16 vlan_id)
431431
if (be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id)
432432
break;
433433
}
434-
if (rule && be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) {
434+
if (rule && rule->type == aq_rx_filter_vlan &&
435+
be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) {
435436
struct ethtool_rxnfc cmd;
436437

437438
cmd.fs.location = rule->aq_fsp.location;
@@ -843,7 +844,7 @@ int aq_filters_vlans_update(struct aq_nic_s *aq_nic)
843844
return err;
844845

845846
if (aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) {
846-
if (hweight < AQ_VLAN_MAX_FILTERS && hweight > 0) {
847+
if (hweight <= AQ_VLAN_MAX_FILTERS && hweight > 0) {
847848
err = aq_hw_ops->hw_filter_vlan_ctrl(aq_hw,
848849
!(aq_nic->packet_filter & IFF_PROMISC));
849850
aq_nic->aq_nic_cfg.is_vlan_force_promisc = false;

drivers/net/ethernet/aquantia/atlantic/aq_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ static int aq_ndev_open(struct net_device *ndev)
6161
if (err < 0)
6262
goto err_exit;
6363

64+
err = aq_filters_vlans_update(aq_nic);
65+
if (err < 0)
66+
goto err_exit;
67+
6468
err = aq_nic_start(aq_nic);
6569
if (err < 0)
6670
goto err_exit;

drivers/net/ethernet/aquantia/atlantic/aq_nic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ int aq_nic_start(struct aq_nic_s *self)
393393
self->aq_nic_cfg.link_irq_vec);
394394
err = request_threaded_irq(irqvec, NULL,
395395
aq_linkstate_threaded_isr,
396-
IRQF_SHARED,
396+
IRQF_SHARED | IRQF_ONESHOT,
397397
self->ndev->name, self);
398398
if (err < 0)
399399
goto err_exit;

drivers/net/ethernet/aquantia/atlantic/aq_vec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ static int aq_vec_poll(struct napi_struct *napi, int budget)
8686
}
8787
}
8888

89+
err_exit:
8990
if (!was_tx_cleaned)
9091
work_done = budget;
9192

@@ -95,7 +96,7 @@ static int aq_vec_poll(struct napi_struct *napi, int budget)
9596
1U << self->aq_ring_param.vec_idx);
9697
}
9798
}
98-
err_exit:
99+
99100
return work_done;
100101
}
101102

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@ static const struct ethtool_ops bcmgenet_ethtool_ops = {
11241124
.set_coalesce = bcmgenet_set_coalesce,
11251125
.get_link_ksettings = bcmgenet_get_link_ksettings,
11261126
.set_link_ksettings = bcmgenet_set_link_ksettings,
1127+
.get_ts_info = ethtool_op_get_ts_info,
11271128
};
11281129

11291130
/* Power down the unimac, based on mode. */

0 commit comments

Comments
 (0)