drivers: remove warning with Meson 0.59Since meson 0.59.0 version, the extract_all_objects() APIneed to pass explicit boolean value.To remove the following warning[1], added explicit `true` for
drivers: remove warning with Meson 0.59Since meson 0.59.0 version, the extract_all_objects() APIneed to pass explicit boolean value.To remove the following warning[1], added explicit `true` forextract_all_objects() use in codebase whever there isno argument.[1]WARNING: extract_all_objects called without setting recursivekeyword argument. Meson currently defaults tonon-recursive to maintain backward compatibility butthe default will be changed in the future.Signed-off-by: Jerin Jacob <[email protected]>Acked-by: Bruce Richardson <[email protected]>
show more ...
build: fix formatting of Meson listsRunning "./devtools/check-meson.py --fix" on the DPDK repo fixes anumber of issues with whitespace and formatting of files:* indentation of lists* missing tr
build: fix formatting of Meson listsRunning "./devtools/check-meson.py --fix" on the DPDK repo fixes anumber of issues with whitespace and formatting of files:* indentation of lists* missing trailing commas on final list element* multiple list entries per line when list is not all single-lineSigned-off-by: Bruce Richardson <[email protected]>
drivers: change indentation in build filesSwitch from using tabs to 4 spaces for meson.build indentation.Signed-off-by: Bruce Richardson <[email protected]>
drivers/net: redefine array size macrosReplace copies of size(arr)/size(arr[0]) with RTE_DIM().Eventually all of these macro definitions should be removed.Signed-off-by: Andrew Boyer <aboyer@pen
drivers/net: redefine array size macrosReplace copies of size(arr)/size(arr[0]) with RTE_DIM().Eventually all of these macro definitions should be removed.Signed-off-by: Andrew Boyer <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
net/thunderx: fix jumbo frame flag condition for MTU setThe jumbo frame uses the 'RTE_ETHER_MAX_LEN' as boundary condition,but the Ether overhead is larger than 18 when it supports dual VLAN tags.
net/thunderx: fix jumbo frame flag condition for MTU setThe jumbo frame uses the 'RTE_ETHER_MAX_LEN' as boundary condition,but the Ether overhead is larger than 18 when it supports dual VLAN tags.That will cause the jumbo flag rx offload is wrong when MTU size is'RTE_ETHER_MTU'.This fix will change the boundary condition with 'RTE_ETHER_MTU' andoverhead, that perhaps impacts the cases of the jumbo frame related.Fixes: 65d9804edc05 ("net/thunderx: support MTU configuration")Cc: [email protected]Signed-off-by: Steve Yang <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
replace unused attributesThere is a common macro __rte_unused, avoiding warnings,which is now used where appropriate for consistency.Signed-off-by: Thomas Monjalon <[email protected]>
build: disable experimental API check internallyRemove setting ALLOW_EXPERIMENTAL_API individually for each Makefile andmeson.build. Instead, enable ALLOW_EXPERIMENTAL_API flag across app, liband
build: disable experimental API check internallyRemove setting ALLOW_EXPERIMENTAL_API individually for each Makefile andmeson.build. Instead, enable ALLOW_EXPERIMENTAL_API flag across app, liband drivers.This changes reduces the clutter across the project while stillmaintaining the functionality of ALLOW_EXPERIMENTAL_API i.e. warningexternal applications about experimental API usage.Signed-off-by: Pavan Nikhilesh <[email protected]>Acked-by: Hemant Agrawal <[email protected]>Signed-off-by: David Marchand <[email protected]>
net/thunderx: support link up and downAdd support for .set_link_up/down() eth ops to bringlink up and down.Signed-off-by: Harman Kalra <[email protected]>Acked-by: Jerin Jacob <jerinj@marvell.
net/thunderx: support link up and downAdd support for .set_link_up/down() eth ops to bringlink up and down.Signed-off-by: Harman Kalra <[email protected]>Acked-by: Jerin Jacob <[email protected]>
net: add rte prefix to ether definesAdd 'RTE_' prefix to defines:- rename ETHER_ADDR_LEN as RTE_ETHER_ADDR_LEN.- rename ETHER_TYPE_LEN as RTE_ETHER_TYPE_LEN.- rename ETHER_CRC_LEN as RTE_ETHER_C
net: add rte prefix to ether definesAdd 'RTE_' prefix to defines:- rename ETHER_ADDR_LEN as RTE_ETHER_ADDR_LEN.- rename ETHER_TYPE_LEN as RTE_ETHER_TYPE_LEN.- rename ETHER_CRC_LEN as RTE_ETHER_CRC_LEN.- rename ETHER_HDR_LEN as RTE_ETHER_HDR_LEN.- rename ETHER_MIN_LEN as RTE_ETHER_MIN_LEN.- rename ETHER_MAX_LEN as RTE_ETHER_MAX_LEN.- rename ETHER_MTU as RTE_ETHER_MTU.- rename ETHER_MAX_VLAN_FRAME_LEN as RTE_ETHER_MAX_VLAN_FRAME_LEN.- rename ETHER_MAX_VLAN_ID as RTE_ETHER_MAX_VLAN_ID.- rename ETHER_MAX_JUMBO_FRAME_LEN as RTE_ETHER_MAX_JUMBO_FRAME_LEN.- rename ETHER_MIN_MTU as RTE_ETHER_MIN_MTU.- rename ETHER_LOCAL_ADMIN_ADDR as RTE_ETHER_LOCAL_ADMIN_ADDR.- rename ETHER_GROUP_ADDR as RTE_ETHER_GROUP_ADDR.- rename ETHER_TYPE_IPv4 as RTE_ETHER_TYPE_IPv4.- rename ETHER_TYPE_IPv6 as RTE_ETHER_TYPE_IPv6.- rename ETHER_TYPE_ARP as RTE_ETHER_TYPE_ARP.- rename ETHER_TYPE_VLAN as RTE_ETHER_TYPE_VLAN.- rename ETHER_TYPE_RARP as RTE_ETHER_TYPE_RARP.- rename ETHER_TYPE_QINQ as RTE_ETHER_TYPE_QINQ.- rename ETHER_TYPE_ETAG as RTE_ETHER_TYPE_ETAG.- rename ETHER_TYPE_1588 as RTE_ETHER_TYPE_1588.- rename ETHER_TYPE_SLOW as RTE_ETHER_TYPE_SLOW.- rename ETHER_TYPE_TEB as RTE_ETHER_TYPE_TEB.- rename ETHER_TYPE_LLDP as RTE_ETHER_TYPE_LLDP.- rename ETHER_TYPE_MPLS as RTE_ETHER_TYPE_MPLS.- rename ETHER_TYPE_MPLSM as RTE_ETHER_TYPE_MPLSM.- rename ETHER_VXLAN_HLEN as RTE_ETHER_VXLAN_HLEN.- rename ETHER_ADDR_FMT_SIZE as RTE_ETHER_ADDR_FMT_SIZE.- rename VXLAN_GPE_TYPE_IPV4 as RTE_VXLAN_GPE_TYPE_IPV4.- rename VXLAN_GPE_TYPE_IPV6 as RTE_VXLAN_GPE_TYPE_IPV6.- rename VXLAN_GPE_TYPE_ETH as RTE_VXLAN_GPE_TYPE_ETH.- rename VXLAN_GPE_TYPE_NSH as RTE_VXLAN_GPE_TYPE_NSH.- rename VXLAN_GPE_TYPE_MPLS as RTE_VXLAN_GPE_TYPE_MPLS.- rename VXLAN_GPE_TYPE_GBP as RTE_VXLAN_GPE_TYPE_GBP.- rename VXLAN_GPE_TYPE_VBNG as RTE_VXLAN_GPE_TYPE_VBNG.- rename ETHER_VXLAN_GPE_HLEN as RTE_ETHER_VXLAN_GPE_HLEN.Do not update the command line library to avoid adding a dependency tolibrte_net.Signed-off-by: Olivier Matz <[email protected]>Reviewed-by: Stephen Hemminger <[email protected]>Reviewed-by: Maxime Coquelin <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
net: add rte prefix to ether structuresAdd 'rte_' prefix to structures:- rename struct ether_addr as struct rte_ether_addr.- rename struct ether_hdr as struct rte_ether_hdr.- rename struct vlan_
net: add rte prefix to ether structuresAdd 'rte_' prefix to structures:- rename struct ether_addr as struct rte_ether_addr.- rename struct ether_hdr as struct rte_ether_hdr.- rename struct vlan_hdr as struct rte_vlan_hdr.- rename struct vxlan_hdr as struct rte_vxlan_hdr.- rename struct vxlan_gpe_hdr as struct rte_vxlan_gpe_hdr.Do not update the command line library to avoid adding a dependency tolibrte_net.Signed-off-by: Olivier Matz <[email protected]>Reviewed-by: Stephen Hemminger <[email protected]>Reviewed-by: Maxime Coquelin <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
net/*/base: allow use of experimental APIs in base codeThe driver setting of "allow_experimental_apis" was not being used whenbuilding the base code. To allow this we can manually put in a checki
net/*/base: allow use of experimental APIs in base codeThe driver setting of "allow_experimental_apis" was not being used whenbuilding the base code. To allow this we can manually put in a checkin the base code files for the setting and set the appropriate cflagif it's needed.Signed-off-by: Bruce Richardson <[email protected]>Acked-by: Andrew Rybchenko <[email protected]>Tested-by: Ilya Maximets <[email protected]>
net/thunderx: support Rx VLAN offloadThis feature is used to offload stripping of VLAN header from receivedpackets and update vlan_tci field in mbuf whenDEV_RX_OFFLOAD_VLAN_STRIP & ETH_VLAN_STRIP
net/thunderx: support Rx VLAN offloadThis feature is used to offload stripping of VLAN header from receivedpackets and update vlan_tci field in mbuf whenDEV_RX_OFFLOAD_VLAN_STRIP & ETH_VLAN_STRIP_MASK flag is set.Signed-off-by: Rakesh Kudurumalla <[email protected]>Signed-off-by: Pavan Nikhilesh <[email protected]>Acked-by: Jerin Jacob <[email protected]>
net/thunderx: add support for hardware first skip featureThis feature is used to create a hole between HEADROOMand actual data.Size of hole is specified in bytes asmodule param to pmdSigned-off
net/thunderx: add support for hardware first skip featureThis feature is used to create a hole between HEADROOMand actual data.Size of hole is specified in bytes asmodule param to pmdSigned-off-by: Rakesh Kudurumalla <[email protected]>Acked-by: Jerin Jacob <[email protected]>
net/thunderx: fix MTU configuration for jumbo packetsthunderx pmd driver passes dev_info.max_rx_pktlen as9200 (via rte_eth_dev_info_get()) to application.But, when application tries to set MTU as
net/thunderx: fix MTU configuration for jumbo packetsthunderx pmd driver passes dev_info.max_rx_pktlen as9200 (via rte_eth_dev_info_get()) to application.But, when application tries to set MTU as(9200 - sizeof(ethernet_header_t)) the operation failsbecause of missing CRC and VLAN additions.This patch fixes the following for thunderx pmd driver: - Sets NIC_HW_MAX_FRS to 9216 (instead of 9200) - Sets NIC_HW_MAX_MTU to 9190 (NIC_HW_MAX_FRS - ETH_HLEN - ETHER_CRC_LEN - 2*VLAN_HLEN) - Sets dev_info->max_rx_pkt_len to NIC_HW_MAX_MTU + ETH_HLEN (instead of 9200) - Allows rte_eth_dev_set_mtu() to pass if application (like VPP) calls rte_eth_dev_set_mtu() before rte_eth_dev_start() by putting appropriate check for dev->data->dev_startedFixes: 65d9804edc05 ("net/thunderx: support MTU configuration")Cc: [email protected]Signed-off-by: Nitin Saxena <[email protected]>Acked-by: Jerin Jacob <[email protected]>
drivers/net: build Cavium NIC PMDs with mesonAdd Cavium octeontx and thunder nicvf to meson build infrastructure.Signed-off-by: Pavan Nikhilesh <[email protected]>Acked-by: Bruce R
drivers/net: build Cavium NIC PMDs with mesonAdd Cavium octeontx and thunder nicvf to meson build infrastructure.Signed-off-by: Pavan Nikhilesh <[email protected]>Acked-by: Bruce Richardson <[email protected]>
drivers: use SPDX tag for Cavium copyright filesSigned-off-by: Jerin Jacob <[email protected]>Acked-by: Hemant Agrawal <[email protected]>
drivers/net: rename physical address type to IOVARenamed data type from phys_addr_t to rte_iova_t.Signed-off-by: Santosh Shukla <[email protected]>Reviewed-by: Anatoly Burakov <a
drivers/net: rename physical address type to IOVARenamed data type from phys_addr_t to rte_iova_t.Signed-off-by: Santosh Shukla <[email protected]>Reviewed-by: Anatoly Burakov <[email protected]>Signed-off-by: Thomas Monjalon <[email protected]>
net/thunderx: update sq config register fieldcq_limit field is added in cn88xx-pass2 and subsequentversions. Reflect the change in the sq_config structure.This change is backward compatible as th
net/thunderx: update sq config register fieldcq_limit field is added in cn88xx-pass2 and subsequentversions. Reflect the change in the sq_config structure.This change is backward compatible as the old pass versionsignore this field.Signed-off-by: Jerin Jacob <[email protected]>
net/thunderx: remove libm dependencyUsed rte_log2_u32() to replace integer log2() toremove libm dependency.Signed-off-by: Jerin Jacob <[email protected]>Reviewed-by: Olivier Matz <
net/thunderx: remove libm dependencyUsed rte_log2_u32() to replace integer log2() toremove libm dependency.Signed-off-by: Jerin Jacob <[email protected]>Reviewed-by: Olivier Matz <[email protected]>
update Cavium Inc copyright headersReplace the incorrect reference to "Cavium Networks", "Cavium Ltd"company name with correct the "Cavium, Inc" company name incopyright headers.Signed-off-by:
update Cavium Inc copyright headersReplace the incorrect reference to "Cavium Networks", "Cavium Ltd"company name with correct the "Cavium, Inc" company name incopyright headers.Signed-off-by: Jerin Jacob <[email protected]>
net/thunderx: fix build with clangReplaced usage of %a0 in inline assembly with [%x0]Signed-off-by: Ashwin Sekhar T K <[email protected]>Reviewed-by: Jerin Jacob <jerin.jacob@cavi
net/thunderx: fix build with clangReplaced usage of %a0 in inline assembly with [%x0]Signed-off-by: Ashwin Sekhar T K <[email protected]>Reviewed-by: Jerin Jacob <[email protected]>Acked-by: Hemant Agrawal <[email protected]>
net/thunderx: use internal byte ordering macrosThe base code was using native GCC macrosfor endian detection. Change to portablerte_byteorder.h based endian detection.Fixes: 262d43fe20ee ("net/
net/thunderx: use internal byte ordering macrosThe base code was using native GCC macrosfor endian detection. Change to portablerte_byteorder.h based endian detection.Fixes: 262d43fe20ee ("net/thunderx/base: add HW register definitions")Suggested-by: Thomas Monjalon <[email protected]>Signed-off-by: Jerin Jacob <[email protected]>
net/thunderx: sync mailbox definitions with Linux PF driver- bgx_link_status mbox definition was changed in Linuxcommit 1cc702591bae ("net: thunderx: Add ethtool support")- NIC_MBOX_MSG_RES_BIT r
net/thunderx: sync mailbox definitions with Linux PF driver- bgx_link_status mbox definition was changed in Linuxcommit 1cc702591bae ("net: thunderx: Add ethtool support")- NIC_MBOX_MSG_RES_BIT related changes were never part of Linux PF driverSigned-off-by: Jerin Jacob <[email protected]>
net/thunderx: fix build on FreeBSDSIMPLEQ_* operations are not available in FreeBSD. Replacingwith equivalent STAILQ_* operations.Fixes: f2546f8e51b8 ("net/thunderx/base: add functions to store
net/thunderx: fix build on FreeBSDSIMPLEQ_* operations are not available in FreeBSD. Replacingwith equivalent STAILQ_* operations.Fixes: f2546f8e51b8 ("net/thunderx/base: add functions to store qsets")Signed-off-by: Jerin Jacob <[email protected]>
net/thunderx: use I/O device memory read/write APIReplace the raw I/O device memory read/write access with ealabstraction for I/O device memory read/write access to fix portabilityissues across d
net/thunderx: use I/O device memory read/write APIReplace the raw I/O device memory read/write access with ealabstraction for I/O device memory read/write access to fix portabilityissues across different architectures.Signed-off-by: Jerin Jacob <[email protected]>
12