summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
5 daysnet/i40e: add PF MDD event handlerHEADmasterfor-next-netZhu Tao
Add warning and counter to handle the malicious driver detection event. When the hardware determines that a malicious driver on VF, this VF will become unworkable, the PF records and gives a warning message. Signed-off-by: Zhu Tao <taox.zhu@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ice: cleanup Tx buffersChenxu Di
Add support to the ice driver for the API rte_eth_tx_done_cleanup to force free consumed buffers on Tx ring. Signed-off-by: Chenxu Di <chenxux.di@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com>
5 daysnet/dpaa: fix Rx offload flags on jumbo MTU setApeksha Gupta
The JUMBO frame handling in dpaa_dev_mtu_set api was not correct. When frame_size is greater than RTE_ETHER_MAX_LEN, the intention is to add JUMBO flag in rx offload while it was resetting all other flags other than JUMBO as AND operator was used instead of OR. Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs") Cc: stable@dpdk.org Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
5 daysapp/testpmd: support mbuf dynamic flagOri Kam
DPDK now supports registration of dynamic flags (dynf) to the mbuf. dynf can be given any name, and can be used with a supporting PMD or supporting application. Due to the generic concept of the dynf, it is impossible and meaningless, to define register set/get function for each flag. This commit introduce a generic way to register and set/clear such flags. The basic syntax: port config <port id> dynf <name> <set|clear> The first step the new flag is registered. Regardless if the action is set or clear. There is no way to unregister the flag, after registering it. The second step, if the action is set then we set the requested flag. If this is the first flag that is enabled we also register a call back for the Tx. In this call back we set the flag. If the action is clear the requested flag is cleared, and if there are no more flags that are set, the call back is removed. The reason that the set is only applied in Tx is that in case of Rx it is assumed that the value comes from the PMD. If log is enabled the name of the flag, and value will be printed in the packet info. In order for the log to work correctly the registration of the flag must be done before setting verbose. Signed-off-by: Ori Kam <orika@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
5 daysnet/nfp: use macro for PCI log formatYunjian Wang
Use PCI_PRI_FMT instead of "%04d:%02d:%02d:%d" print format. Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Acked-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
5 daysnet/i40e: support ESP in Flow DirectorBernard Iremonger
add fill_ip6_head() hardcode udp destination port to 4500 handle ESP and AH pctypes in ESP-AH profile update the i40e user guide with ESP information. update release notes for i40e changes Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysnet/i40e: support ESP flowsBernard Iremonger
add eth/ipv4/esp and eth/ipv6/esp patterns add eth/ipv4/udp/esp and eth/ipv6/esp/udp patterns update i40e_flow_parse_fdir_filter() add i40e_flow_set_filter_spi() Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysnet/i40e: support ESP in customized codeBernard Iremonger
update customized code for ESP Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysnet/i40e: support ipsec-ah profileBernard Iremonger
Add flow structures for the following patterns in i40e_ethdev files: eth/ipv4/esp eth/ipv6/esp eth/ipv4/udp/esp eth/ipv6/esp/udp add oip_type in filter add is_udp in filter use tenant_id in filter for spi Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysnet/i40e: handle ESP tunnelBernard Iremonger
handle ESP tunnel in rte_pmd_i40e.c Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysnet/i40e: improve RSS debugBernard Iremonger
improve RSS debug in i40e_ethdev.c Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysapp/testpmd: improve debugBernard Iremonger
print function name in port_flow_complain() Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
5 daysapp/testpmd: parse flow command line for ESPBernard Iremonger
add ITEM_ESP add ITEM_ESP_SPI update release notes for testpmd changes add sample ESP rules in testpmd guide Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Ori Kam <orika@mellanox.com>
5 daysnet/ixgbe: enable NEON in mesonReshma Pattan
Add missing arm vector build support to meson.build. Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ixgbe: add missing stubs for PPCReshma Pattan
Add stubs for ixgbe_xmit_fixed_burst_vec, ixgbe_rx_queue_release_mbufs_vec and ixgbe_txq_vec_setup Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ixgbe: remove duplicate function declarationReshma Pattan
Remove duplicate declarations of ixgbe_xmit_fixed_burst_vec from ixgbe_rxtx.c Fixes: 646412f9ff62 ("net/ixgbe: remove limit of Tx burst size") Cc: stable@dpdk.org Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ixgbe: remove vectorization weak symbolsReshma Pattan
Remove weak symbols from ixgbe_rxtx.c file as it is done in i40e driver in commit "02ad704708" (net/i40e: eliminate weak symbols in data path) Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ixgbe: remove vector configReshma Pattan
CONFIG_RTE_IXGBE_INC_VECTOR is enabled by default, so remove it and use architecture specific flags. Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ice/base: clean up compatibility layerHaiyue Wang
Remove the unused definitions, rewrite the IO data read/write helpers, and put the common definitions related to RTE defines under the macro __INTEL_NET_BASE_OSDEP__, so it works like OS(RTE) dependency. Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 dayscommon/iavf: clean up compatibility layerHaiyue Wang
Remove the unused definitions, rewrite the IO data read/write helpers, and put the common definitions related to RTE defines under the macro __INTEL_NET_BASE_OSDEP__, so it works like OS(RTE) dependency. Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ice: unify bool type valueHaiyue Wang
Replaces the redefined TRUE and FALSE values with standard ones to match the 'bool' type definition. Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/iavf: unify bool type valueHaiyue Wang
Replaces the redefined TRUE and FALSE values with standard ones to match the 'bool' type definition. Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/ice: fix Tx when TSO is enabledXiaoyun Li
Hardware limits that max buffer size per Tx descriptor should be (16K-1)B. So when TSO enabled, the mbuf data size may exceed the limit and cause malicious behavior to the NIC. This patch fixes this issue by using more Tx descs for this kind of large buffer. Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") Cc: stable@dpdk.org Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysnet/ixgbe: fix build for gcc 4.8.5Ferruh Yigit
Build error: In function ‘ixgbe_recv_pkts_lro_bulk_alloc’: ../drivers/net/ixgbe/ixgbe_rxtx.c:2209:24: error: ‘next_sc_entry’ may be used uninitialized in this function [-Werror=maybe-uninitialized] next_sc_entry->fbuf = first_seg; ^ http://mails.dpdk.org/archives/test-report/2020-January/113891.html This is a compiler false positive and error not seen by newer compilers, or clang but to fix the warning initializing the complained variable. According git bisect, no idea how: Fixes: b91d237e332d ("net/ixgbe: avoid multiple definitions of bool") Reported-by: Maxime Coquelin <maxime.coquelin@redhat.com> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Tested-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/mlx5: fix doorbell register offset typeViacheslav Ovsiienko
The doorbell register is mapped using mmap() and offset must have off_t instead of unsigned int. Bug is not critical due to only least significant bits of offset are currently tested to determine mapping mode. Fixes: 8409a28573d3 ("net/mlx5: control transmit doorbell register mapping") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Acked-by: Matan Azrad <matan@mellanox.com>
5 daysnet/virtio-user: fix packed ring server modeXuan Ding
This patch fixes the situation where data path does not work properly when vhost reconnects to virtio in server mode with packed ring. Currently, virtio and vhost share memory of vring. For split ring, vhost can read the status of descriptors directly from the available ring and the used ring during reconnection. Therefore, the data path can continue. But for packed ring, when reconnecting to virtio, vhost cannot get the status of descriptors via the descriptor ring. By resetting Tx and Rx queues, the data path can restart from the beginning. Fixes: 4c3f5822eb21 ("net/virtio: add packed virtqueue defines") Cc: stable@dpdk.org Signed-off-by: Xuan Ding <xuan.ding@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
5 daysvhost: fix deadlock on port deletionMaxime Coquelin
If the vhost-user application (e.g. OVS) deletes the vhost-user port while Qemu sends a vhost-user request, a deadlock can happen if the request handler tries to acquire vhost-user's global mutex, which is also locked by the vhost-user port deletion API (rte_vhost_driver_unregister). This patch prevents the deadlock by making rte_vhost_driver_unregister() to release the mutex and try again if a request is being handled to give a chance to the request handler to complete. Fixes: 8b4b949144b8 ("vhost: fix dead lock on closing in server mode") Fixes: 5fbb3941da9f ("vhost: introduce driver features related APIs") Cc: stable@dpdk.org Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com> Acked-by: Eelco Chaudron <echaudro@redhat.com>
5 daysnet/virtio-user: fix unchecked return valueYunjian Wang
The function vhost_kernel_tap_set_offload() could return errors, the return value need to be checked. And there is no need to fail when error is -ENOTSUP. Fixes: 1db4d2330bc8 ("net/virtio-user: check negotiated features before set") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
5 daysnet/virtio: support packed ring notification data featureCheng Jiang
This patch supports the feature that the driver passes extra data (besides identifying the virtqueue) in its device notifications, expanding the notifications to include the avail index and avail wrap counter. Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
5 daysvhost: support config change slave msgLi Feng
This msg is used to notify qemu that should get the config of backend. For example, vhost-user-blk uses this msg to notify guest OS the capacity of backend has changed. The need_reply flag is not mandatory because it will block the sender thread and master process will send get_config message to fetch the configuration, this need an extra thread to process the vhost message. Signed-off-by: Li Feng <fengli@smartx.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
5 daysnet/virtio-user: do not close tap when disabling queue pairsTiwei Bie
Do not close the tap fds when disabling queue pairs, instead, we just need to unbind the backend. Otherwise, tap port can be destroyed unexpectedly. Fixes: e3b434818bbb ("net/virtio-user: support kernel vhost") Cc: stable@dpdk.org Reported-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
5 daysdoc: basic update for iceXiaolong Ye
The ice PMD supports 10/25/50/100 Gbps. Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
5 daysdoc: update recommended versions for i40eZhaoyan Chen
Update supported Intel NIC driver version and firmware version for 19.11 Update supported Intel NIC driver version to 2.8.43 for 19.08 which is widely tested. Fixes: cb8a35c22aa9 ("doc: update supported i40e driver and firmware version") Cc: stable@dpdk.org Signed-off-by: Zhaoyan Chen <zhaoyan.chen@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
5 daysnet/e1000: cleanup Tx buffersChenxu Di
Add support to the igb vf for the API rte_eth_tx_done_cleanup to force free consumed buffers on Tx ring. Signed-off-by: Chenxu Di <chenxux.di@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
5 daysnet/ixgbe: cleanup Tx buffersChenxu Di
Add support to the ixgbe driver for the API rte_eth_tx_done_cleanup to force free consumed buffers on Tx ring. Signed-off-by: Chenxu Di <chenxux.di@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
5 daysnet/ice: cleanup Tx buffersChenxu Di
Add support to the ice driver for the API rte_eth_tx_done_cleanup to force free consumed buffers on Tx ring. Signed-off-by: Chenxu Di <chenxux.di@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com>
5 daysnet/i40e: cleanup Tx buffersChenxu Di
Add support to the i40e driver for the API rte_eth_tx_done_cleanup to force free consumed buffers on Tx ring. Signed-off-by: Chenxu Di <chenxux.di@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
5 daysnet/octeontx2: fix PTP and HIGIG2 coexistenceKiran Kumar K
octeontx2 PMD does not support both PTP and HIGIG2 together. Added a check to enforce this and updated the Rx offload capabilities when Higig2 mode enabled. Fixes: 602009ee2dfb ("net/octeontx2: support HIGIG2") Cc: stable@dpdk.org Signed-off-by: Kiran Kumar K <kirankumark@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
5 daysnet/cxgbe: announce Tx multi segs offloadRahul Lakkireddy
Multi-segs Tx is already supported by CXGBE PMD. So, add the missing DEV_TX_OFFLOAD_MULTI_SEGS flag to the list of supported Tx offload features. Fixes: 436125e64174 ("net/cxgbe: update to Rx/Tx offload API") Cc: stable@dpdk.org Reported-by: Chas Williams <3chas3@gmail.com> Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
5 daysnet/enic: move macro to correct fileJohn Daley
Move a macro from a widely included header file to a header file used only by the one caller of the macro. Signed-off-by: John Daley <johndale@cisco.com> Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
5 daysnet/enic: consolidate and remove some definesJohn Daley
There were defines which originally allowed sharing of some code with the enic kernel driver. The code has long since diverged and now the abstraction just makes the code harder to read. Mostly mechanical replacement of defines and reformatting. Signed-off-by: John Daley <johndale@cisco.com> Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
5 daysnet/enic: use standard RTE definesJohn Daley
Use the memzone namesize, Ethernet address length defines from the RTE header files instead of locally defined versions. Use the RTE byte swap functions instead of the x86 specific locally defined versions. Signed-off-by: John Daley <johndale@cisco.com> Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
5 daysnet/netvsc: eliminate NUMA specific allocationStephen Hemminger
The control messages do not need NUMA specific allocation. Numa node is not set anyway in most kernels anyway. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
5 daysnet/netvsc: fix crash in secondary processStephen Hemminger
The secondary process would crash trying to get the offload capability of the device. Since the device capabilities were already set by the primary process this was unnecessary. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
5 dayscommon/octeontx2: support C0 silicon versionNithin Dabilpuram
Avoid using PCI subsystem device id for SoC revision identification and just use PCI revision id to support C0 silicon. This patch also reduces SQB threshold to 70% to have sufficient buffer before we overflow SQ. Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
5 daysnet/octeontx: add unicast MAC filterSunil Kumar Kori
At BGX, DMAC filter table can be enabled to allow defined hosts. Patch implements 'mac_addr_add' and 'mac_addr_remove' ops to add/remove MAC filters which uses BGX DMAC filter table. Signed-off-by: Sunil Kumar Kori <skori@marvell.com> Acked-by: Harman Kalra <hkalra@marvell.com>
5 daysmempool/octeontx: fix error handling in initializationKrzysztof Kanas
When octeontx_get_fpavf fails fpa pointer is used to get pool_stack_base, which is then freed. Coverity issue: 351263 Fixes: 9bc692f83baa ("mempool/octeontx: add application domain validation") Cc: stable@dpdk.org Signed-off-by: Krzysztof Kanas <kkanas@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
5 daysnet/octeontx2: improve vector Tx performancePavan Nikhilesh
Use scalar loads instead of vector loads for fields that don't need any vector operations. Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
5 daysnet/qede: enhance Tx CPU utilizationShahed Shaikh
Use lightweight transmit handler which handles non-offloaded Tx data path. We get CPU utilization improvement of ~8%. Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
5 daysnet/qede: enhance Rx CPU utilizationShahed Shaikh
Use light weight receive packet handler for non-LRO and non-scatter packets to improve CPU utilization in receive data path. We achieved ~18% CPU cycles improvement using this handler. Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>