- 23 9月, 2022 24 次提交
-
-
由 Horatiu Vultur 提交于
Add a define for the number of priority queues on lan966x. Because there will be more checks for this, so instead of using hardcoded value all over the place add a define for this. Signed-off-by: NHoratiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Daniel Machon 提交于
Add support for offloading ets qdisc to sparx5 switch. The ets qdisc makes it possible to configure a mix og strict and bandwidth-sharing bands. The ets qdisc must be attached as a root qdisc. Signed-off-by: NDaniel Machon <daniel.machon@microchip.com> Signed-off-by: NSteen Hegelund <steen.hegelund@microchip.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Daniel Machon 提交于
Add support for offloading tbf qdisc to sparx5 qdisc. The tbf qdisc makes it possible to attach a shaper on traffic egressing from a port or a queue. Per-port tbf qdiscs are attached as a root qdisc directly and queue tbf qdiscs are attached to one of the classes of a parent qdisc (such as mqprio). Signed-off-by: NDaniel Machon <daniel.machon@microchip.com> Signed-off-by: NSteen Hegelund <steen.hegelund@microchip.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Daniel Machon 提交于
Add support for offloading mqprio qdisc to sparx5 switch. The offloaded mqprio qdisc currently does nothing by itself, but serves as an attachment point for other qdiscs (tbf, ets etc.) Signed-off-by: NDaniel Machon <daniel.machon@microchip.com> Signed-off-by: NSteen Hegelund <steen.hegelund@microchip.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Daniel Machon 提交于
Add tc setup hook for QoS features. Signed-off-by: NDaniel Machon <daniel.machon@microchip.com> Signed-off-by: NSteen Hegelund <steen.hegelund@microchip.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Emeel Hakim 提交于
Support setting replay window size for MACsec offload. Currently supported window size of 32, 64, 128 and 256 bit. Other values will be returned as invalid parameter. Reviewed-by: NRaed Salem <raeds@nvidia.com> Signed-off-by: NEmeel Hakim <ehakim@nvidia.com> Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Emeel Hakim 提交于
MACsec EPN splits the packet number (PN) into two 32-bits fields, epn_lsb (32 least significant bits (LSBs) of PN) and epn_msb (32 most significant bits (MSBs) of PN). Epn_msb bits are managed by SW and for that HW is required to send an object change event of type EPN event notifying the SW to update the epn_msb in addition, once epn_msb is updated SW update HW with the new epn_msb value for HW to perform replay protection. To prevent HW from stopping while handling the event, SW manages another bit for HW called epn_overlap, HW uses the latter to get an indication regarding how to read the epn_msb value correctly while still receiving packets. Add epn event handling that updates the epn_overlap and epn_msb for every 2^31 packets according to the following logic: if epn_lsb crosses 2^31 (half sequence number wraparound) upon HW relevant event, SW updates the esn_overlap value to OLD (value = 1). When the epn_lsb crosses 2^32 (full sequence number wraparound) upon HW relevant event, SW updates the esn_overlap to NEW (value = 0) and increment the esn_msb. When using MACsec EPN a salt and short secure channel id (ssci) needs to be provided by the user, when offloading EPN need to pass this salt and ssci to the HW to be used in the initial vector (IV) calculations. Reviewed-by: NRaed Salem <raeds@nvidia.com> Signed-off-by: NEmeel Hakim <ehakim@nvidia.com> Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Reported-by: Nkernel test robot <lkp@intel.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Emeel Hakim 提交于
Postpone MACsec initialization to the mlx5e profile enable stage to have user access region (UAR) pages and other resources ready before MACsec initialization to initialize advanced steering operation (ASO) hardware resources. Reviewed-by: NRaed Salem <raeds@nvidia.com> Signed-off-by: NEmeel Hakim <ehakim@nvidia.com> Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Emeel Hakim 提交于
Add support for ASO work queue entry (WQE) data to allow reading data upon querying the ASO work queue (WQ). Register user mode memory registration (UMR) upon ASO WQ init, de-register UMR upon ASO WQ cleanup. MACsec uses UMR to determine the cause of the event triggered by the HW since different scenarios could trigger the same event. Setup MACsec ASO object to sync HW with SW about various macsec flow stateful features like: replay window, lifetime limits e.t.c Reviewed-by: NRaed Salem <raeds@nvidia.com> Signed-off-by: NEmeel Hakim <ehakim@nvidia.com> Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Emeel Hakim 提交于
Expose mlx5e_create_mkey function, for future patches in the macsec series to use. The above function creates a memory key which describes a region in memory that can be later used by both HW and SW. The counterpart destroy functionality is already exposed. Reviewed-by: NRaed Salem <raeds@nvidia.com> Signed-off-by: NEmeel Hakim <ehakim@nvidia.com> Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Emeel Hakim 提交于
Currently when creating MACsec object, next_pn which represents the initial packet number (PN) is considered only in TX flow. The above causes mismatch between TX and RX initial PN which is reflected in packet drops. Fix by considering next_pn in RX flow too. Fixes: aae3454e ("net/mlx5e: Add MACsec offload Rx command support") Signed-off-by: NEmeel Hakim <ehakim@nvidia.com> Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Emeel Hakim 提交于
Currently MACsec initialization error path does not destroy sci hash table in case of failure. Fix by destroying hash table in case of failure. Fixes: 9515978e ("net/mlx5e: Implement MACsec Tx data path using MACsec skb_metadata_dst") Signed-off-by: NEmeel Hakim <ehakim@nvidia.com> Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
The input parameter prod_idx is not used in sq_prepare_ctrl(), remove it. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
Replace magic numbers with macro. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
remove unused enumerated value. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
When hinic_pci_sriov_disable() calls hinic_deinit_vf_hw(), it doesn't care about the return value of hinic_deinit_vf_hw(). Also hinic_deinit_vf_hw() is return 0, so change it to void. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
simplify code logic in hinic_ndo_set_vf_trust() and hinic_ndo_set_vf_spoofchk(). Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
The macro HINIC_WAIT_SRIOV_CFG_TIMEOUT is defined twice, remove one. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
remove unused macro. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
hinic_hwdev_max_num_qpas() and hinic_msix_attr_get() are no longer called, remove them. Also the macro HINIC_MSIX_ATTR_GET is also not called, remove it. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
Functions are called only in one file, change their type to static. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Zhengchao Shao 提交于
The type of cmdq_free_page() hinic_set_pf_action() and link_status_event_handler() are void, modify the comments. Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Gal Pressman 提交于
Add support for 256 bit TLS keys using device offload. Reviewed-by: NTariq Toukan <tariqt@nvidia.com> Signed-off-by: NGal Pressman <gal@nvidia.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Vadim Fedorenko 提交于
Any change to the hardware timestamps configuration triggers nic restart, which breaks transmition and reception of network packets for a while. But there is no need to fully restart the device because while configuring hardware timestamps. The code for changing configuration runs after all of the initialisation, when the NIC is actually up and running. This patch changes the code that ioctl will only update configuration registers and will not trigger carrier status change, but in case of timestamps for all rx packetes it fallbacks to close()/open() sequnce because of synchronization issues in the hardware. Tested on BCM57504. Cc: Richard Cochran <richardcochran@gmail.com> Signed-off-by: NVadim Fedorenko <vfedorenko@novek.ru> Reviewed-by: NMichael Chan <michael.chan@broadcom.com> Link: https://lore.kernel.org/r/20220922191038.29921-1-vfedorenko@novek.ruSigned-off-by: NJakub Kicinski <kuba@kernel.org>
-
- 22 9月, 2022 16 次提交
-
-
由 Jakub Kicinski 提交于
When reading the timestamp is required bnxt_tx_int() hands over the ownership of the completed skb to the PTP worker. The skb should not be used afterwards, as the worker may run before the rest of our code and free the skb, leading to a use-after-free. Since dev_kfree_skb_any() accepts NULL make the loss of ownership more obvious and set skb to NULL. Fixes: 83bb623c ("bnxt_en: Transmit and retrieve packet timestamps") Reviewed-by: NAndy Gospodarek <gospo@broadcom.com> Reviewed-by: NMichael Chan <michael.chan@broadcom.com> Link: https://lore.kernel.org/r/20220921201005.335390-1-kuba@kernel.orgSigned-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Liang He 提交于
In prestera_port_sfp_bind(), there are two refcounting bugs: (1) we should call of_node_get() before of_find_node_by_name() as it will automaitcally decrease the refcount of 'from' argument; (2) we should call of_node_put() for the break of the iteration for_each_child_of_node() as it will automatically increase and decrease the 'child'. Fixes: 52323ef7 ("net: marvell: prestera: add phylink support") Signed-off-by: NLiang He <windhl@126.com> Reviewed-by: NYevhen Orlov <yevhen.orlov@plvision.eu> Link: https://lore.kernel.org/r/20220921133245.4111672-1-windhl@126.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Alexandru Tachici 提交于
MII_BUS_ID_SIZE is larger than MAX_PHYS_ITEM_ID_LEN so we use the former here to set the parent port id. Fixes: bc93e19d ("net: ethernet: adi: Add ADIN1110 support") Signed-off-by: NAlexandru Tachici <alexandru.tachici@analog.com> Link: https://lore.kernel.org/r/20220922063049.10388-1-alexandru.tachici@analog.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Sean Anderson 提交于
There is a separate receive path for small packets (under 256 bytes). Instead of allocating a new dma-capable skb to be used for the next packet, this path allocates a skb and copies the data into it (reusing the existing sbk for the next packet). There are two bytes of junk data at the beginning of every packet. I believe these are inserted in order to allow aligned DMA and IP headers. We skip over them using skb_reserve. Before copying over the data, we must use a barrier to ensure we see the whole packet. The current code only synchronizes len bytes, starting from the beginning of the packet, including the junk bytes. However, this leaves off the final two bytes in the packet. Synchronize the whole packet. To reproduce this problem, ping a HME with a payload size between 17 and 214 $ ping -s 17 <hme_address> which will complain rather loudly about the data mismatch. Small packets (below 60 bytes on the wire) do not have this issue. I suspect this is related to the padding added to increase the minimum packet size. Fixes: 1da177e4 ("Linux-2.6.12-rc2") Signed-off-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NAndrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20220920235018.1675956-1-seanga2@gmail.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Lorenzo Bianconi 提交于
Introduce hw flow offload support for mt7986 chipset. PPE is not enabled yet in mt7986 since mt76 support is not available yet. Tested-by: NDaniel Golle <daniel@makrotopia.org> Co-developed-by: NBo Jiao <Bo.Jiao@mediatek.com> Signed-off-by: NBo Jiao <Bo.Jiao@mediatek.com> Co-developed-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
Other than pcie bus, introduce support for axi bus to mtk wed driver. Axi bus is used to connect mt7986-wmac soc chip available on mt7986 device. Tested-by: NDaniel Golle <daniel@makrotopia.org> Co-developed-by: NBo Jiao <Bo.Jiao@mediatek.com> Signed-off-by: NBo Jiao <Bo.Jiao@mediatek.com> Co-developed-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
Introduce Wireless Etherne Dispatcher support on transmission side for mt7986 chipset Tested-by: NDaniel Golle <daniel@makrotopia.org> Co-developed-by: NBo Jiao <Bo.Jiao@mediatek.com> Signed-off-by: NBo Jiao <Bo.Jiao@mediatek.com> Co-developed-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
Introduce mtk_wed_configure_irq, mtk_wed_dma_enable and mtk_wed_dma_disable utility routines. This is a preliminary patch to introduce mt7986 wed support. Tested-by: NDaniel Golle <daniel@makrotopia.org> Co-developed-by: NBo Jiao <Bo.Jiao@mediatek.com> Signed-off-by: NBo Jiao <Bo.Jiao@mediatek.com> Co-developed-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
Introduce foe_entry_size to mtk_eth_soc data structure since mt7986 relies on a bigger mtk_foe_entry data structure. Tested-by: NDaniel Golle <daniel@makrotopia.org> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
This is a preliminary patch to introduce mt7986 wed support. Tested-by: NDaniel Golle <daniel@makrotopia.org> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
mt7986 chipset support multiple packet engines for wlan <-> eth packet forwarding. Tested-by: NDaniel Golle <daniel@makrotopia.org> Co-developed-by: NBo Jiao <Bo.Jiao@mediatek.com> Signed-off-by: NBo Jiao <Bo.Jiao@mediatek.com> Co-developed-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
This is a preliminary patch to introduce mt7986 hw packet engine. Tested-by: NDaniel Golle <daniel@makrotopia.org> Co-developed-by: NBo Jiao <Bo.Jiao@mediatek.com> Signed-off-by: NBo Jiao <Bo.Jiao@mediatek.com> Co-developed-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NSujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Lorenzo Bianconi 提交于
This is a preliminary patch to introduce mt7986 hw packet engine. Tested-by: NDaniel Golle <daniel@makrotopia.org> Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Sun Ke 提交于
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: fef29982 ("net: altera: tse: convert to phylink") Reported-by: Nkernel test robot <lkp@intel.com> Signed-off-by: NSun Ke <sunke32@huawei.com> Link: https://lore.kernel.org/r/20220920020041.2685948-1-sunke32@huawei.comSigned-off-by: NPaolo Abeni <pabeni@redhat.com>
-
由 Uwe Kleine-König 提交于
Usually it's not necessary to declare static functions if the symbols are in the right order. Moving the definition of tsi_eth_driver down in the compilation unit allows to drop two such declarations. Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220919131515.885361-1-u.kleine-koenig@pengutronix.deSigned-off-by: NJakub Kicinski <kuba@kernel.org>
-
由 Colin Foster 提交于
The ocelot_reset() function utilizes regmap_field_write() but wasn't checking return values. While this won't cause issues for the current MMIO regmaps, it could be an issue for externally controlled interfaces. Add checks for these return values. Signed-off-by: NColin Foster <colin.foster@in-advantage.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
-