#
e0947ed9 |
| 19-Oct-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: add support for VXLAN UDP port config over VF
- Allow VXLAN enable/disable over VF using udp_tunnel_port_add/del APIs. Only default MAC/VLAN classification is supported. - Enable VxLAN b
net/qede: add support for VXLAN UDP port config over VF
- Allow VXLAN enable/disable over VF using udp_tunnel_port_add/del APIs. Only default MAC/VLAN classification is supported. - Enable VxLAN before UDP port configuration. - Change VxLAN default UDP port to 4789 instead of 8472.
Signed-off-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
fb88acb5 |
| 19-Oct-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: fix supported packet types
Update/fix supported ptypes to return both inner and outer headers, tunnel_type, fragmented and VLAN packet types.
Fixes: 3d4bb4411683 ("net/qede: add fastpath
net/qede: fix supported packet types
Update/fix supported ptypes to return both inner and outer headers, tunnel_type, fragmented and VLAN packet types.
Fixes: 3d4bb4411683 ("net/qede: add fastpath support for VXLAN tunneling") Fixes: 2ea6f76aff40 ("qede: add core driver") Cc: stable@dpdk.org
Signed-off-by: Harish Patil <harish.patil@cavium.com> Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
d5b0924b |
| 10-Oct-2017 |
Matan Azrad <matan@mellanox.com> |
ethdev: add return value to stats get dev op
The stats_get dev op API doesn't include return value, so PMD cannot return an error in case of failure at stats getting process time.
Since PCI devices
ethdev: add return value to stats get dev op
The stats_get dev op API doesn't include return value, so PMD cannot return an error in case of failure at stats getting process time.
Since PCI devices can be removed and there is a time between the physical removal to the RMV interrupt, the user may get invalid stats without any indication.
This patch changes the stats_get API return value to be int instead of void.
All the net PMDs stats_get dev ops are adjusted by this patch.
Signed-off-by: Matan Azrad <matan@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
c0845c33 |
| 19-Sep-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede/base: add new macro for CMT mode
- Add ECORE_IS_CMT macro (CMT: couple mode teaming) and use that in all the places where there are checks for number of HW functions per device > 1.
Signed
net/qede/base: add new macro for CMT mode
- Add ECORE_IS_CMT macro (CMT: couple mode teaming) and use that in all the places where there are checks for number of HW functions per device > 1.
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
739a5b2f |
| 19-Sep-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede/base: use passed ptt handler
Use the ptt[PF translation table] handler that is passed rather than using main ptt from the HW function. In ecore_hw_get_resc()'s error flow, release the MFW g
net/qede/base: use passed ptt handler
Use the ptt[PF translation table] handler that is passed rather than using main ptt from the HW function. In ecore_hw_get_resc()'s error flow, release the MFW generic resource lock only if needed. Change the verbosity level of GRC timeout from DP_INFO() to DP_NOTICE(). Reduce verbosity of print in ecore_hw_bar_size().
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
ef86e67a |
| 24-Aug-2017 |
RongQiang Xie <xie.rongqiang@zte.com.cn> |
net/qede: fix possible null pointer dereference
In function qede_rss_reta_update(), the pointer params returned from call to function rte_zmalloc() may be NULL and will be dereferenced. So, should j
net/qede: fix possible null pointer dereference
In function qede_rss_reta_update(), the pointer params returned from call to function rte_zmalloc() may be NULL and will be dereferenced. So, should judge if the params is NULL or not.
Fixes: 8b3ee85efe11 ("net/qede: fix RSS table entries for 100G adapter") Cc: stable@dpdk.org
Signed-off-by: RongQiang Xie <xie.rongqiang@zte.com.cn> Acked-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
3818ac22 |
| 24-Jul-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: fix chip details print
Fix chip details printed as part of print adapter info
Fixes: 2ea6f76aff40 ("qede: add core driver") Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@ca
net/qede: fix chip details print
Fix chip details printed as part of print adapter info
Fixes: 2ea6f76aff40 ("qede: add core driver") Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
9c1aa3e1 |
| 24-Jul-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede/base: fix for adapter specific stats
Handle different MAC statistic fields between two chip variants by reading the MAC counters from the adapter suitable statistics bins.
Fixes: ec94dbc57
net/qede/base: fix for adapter specific stats
Handle different MAC statistic fields between two chip variants by reading the MAC counters from the adapter suitable statistics bins.
Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
d2a2468e |
| 01-Jul-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: add missing check for VNI
Add missing check for VNI field while adding unicast filter.
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
|
#
4ffa2af9 |
| 01-Jul-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: change debug verbosity of messages
Convert DP_NOTICE() to DP_ERR() as appropriate in PMD files. Change DP_NOTICE() macro to make use of boolean flag to log it as error message or informati
net/qede: change debug verbosity of messages
Convert DP_NOTICE() to DP_ERR() as appropriate in PMD files. Change DP_NOTICE() macro to make use of boolean flag to log it as error message or informational message.
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
e8fb98d6 |
| 01-Jul-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: add comments traces and format changes
Changes include - comment modifications - adds tracing during initialization - adds/removes new lines
Signed-off-by: Rasesh Mody <rasesh.mody@cav
net/qede: add comments traces and format changes
Changes include - comment modifications - adds tracing during initialization - adds/removes new lines
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
c008e17b |
| 01-Jul-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: limit ring size to 32k
Since nb_max is a u16 it can store value up to 65535 only (not 64K), but this value is not a power-of-2. So limit the ring sizes to 32K.
Signed-off-by: Harish Patil
net/qede: limit ring size to 32k
Since nb_max is a u16 it can store value up to 65535 only (not 64K), but this value is not a power-of-2. So limit the ring sizes to 32K.
Signed-off-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
a39001d9 |
| 01-Jul-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: fix DMA memory leak
Implement the macro OSAL_DMA_FREE_COHERENT to release DMA memories. Track all DMA memory allocations using an array of memzone pointers and use that to free memory reso
net/qede: fix DMA memory leak
Implement the macro OSAL_DMA_FREE_COHERENT to release DMA memories. Track all DMA memory allocations using an array of memzone pointers and use that to free memory resources along with other resource deallocation. With this change there is no need to alter the base code to additionally pass an unique string needed for memzone creation.
Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
Signed-off-by: Harish Patil <harish.patil@cavium.com> Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
4c4bdadf |
| 07-Jun-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: refactoring multi-queue implementation
This patch does the following refactoring and cleanup:
- As part of multi-queue support a struct member called 'type' was added in struct qede_fas
net/qede: refactoring multi-queue implementation
This patch does the following refactoring and cleanup:
- As part of multi-queue support a struct member called 'type' was added in struct qede_fastpath in order to identify whether a queue is RX or TX and take actions based on that. This was unnecessary in the first place since pointers to RX and TX queues are already available in rte_eth_dev->data. So all usage of fp->type is removed.
- Remove remaining additional layer of internal callbacks for RX/TX queues and fastpath related operations from the qed_eth_ops_pass. With this change the files qede_eth_if.[c,h] are no longer needed.
- Add new per-queue start/stop APIs instead of clubbing it all together.
- Remove multiple TXQs references (num_tc and fp->txqs) since CoS is not supported.
- Enable sharing of the status block for each queue pair.
- Remove enum qede_dev_state and instead make use of existing port states RTE_ETH_QUEUE_STATE_STOPPED/RTE_ETH_QUEUE_STATE_STARTED.
- Move qede_dev_start() and qede_dev_stop() to qede_ethdev.c from qede_rxtc.c.
Signed-off-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
9a6d30ae |
| 07-Jun-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: refactoring vport handling code
The refactoring is mainly for two reasons:
- To remove an additional layer of internal callbacks for all vport related operations from the struct qed_eth
net/qede: refactoring vport handling code
The refactoring is mainly for two reasons:
- To remove an additional layer of internal callbacks for all vport related operations from the struct qed_eth_ops_pass. Instead, we can invoke base APIs directly.
- Splitting a single large vport-update configuration into multiple and independent vport-update operations. Each configuration would touch only the required config bits that needs an update.
Signed-off-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
c0802544 |
| 15-May-2017 |
Ferruh Yigit <ferruh.yigit@intel.com> |
drivers/net: add generic ethdev macro to get PCI device
Instead of many PMD define their own macro, define a generic one in ethdev and use that in PMDs.
Signed-off-by: Ferruh Yigit <ferruh.yigit@in
drivers/net: add generic ethdev macro to get PCI device
Instead of many PMD define their own macro, define a generic one in ethdev and use that in PMDs.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Allain Legacy <allain.legacy@windriver.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
dd2c630a |
| 12-May-2017 |
Ferruh Yigit <ferruh.yigit@intel.com> |
drivers/net: remove unnecessary macro for unused variables
remove __rte_unused instances that are not required.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Allain Legacy <allain.
drivers/net: remove unnecessary macro for unused variables
remove __rte_unused instances that are not required.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Allain Legacy <allain.legacy@windriver.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
06e81dc9 |
| 20-May-2017 |
David Marchand <david.marchand@6wind.com> |
drivers/net: fix vfio kmod dependency
vfio is the kernel framework used by the vfio-pci kernel driver. DPDK drivers do not rely solely on vfio, but rather on vfio-pci to gain access to pci resources
drivers/net: fix vfio kmod dependency
vfio is the kernel framework used by the vfio-pci kernel driver. DPDK drivers do not rely solely on vfio, but rather on vfio-pci to gain access to pci resources.
Fixes: 0880c40113ef ("drivers: advertise kmod dependencies in pmdinfo") Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
8b3ee85e |
| 07-May-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: fix RSS table entries for 100G adapter
With the change in base APIs the logic for 100G handling needs to be adjusted to pass cid values instead for queue ids. The current API works assumin
net/qede: fix RSS table entries for 100G adapter
With the change in base APIs the logic for 100G handling needs to be adjusted to pass cid values instead for queue ids. The current API works assuming its queue id.
Fixes: 69d7ba88f1a1 ("net/qede/base: use L2-handles for RSS configuration")
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
6d01e580 |
| 05-May-2017 |
Wei Dai <wei.dai@intel.com> |
ethdev: fix adding invalid MAC address
Some customers find adding MAC addr to VF sometimes can fail, but it is still stored in dev->data->mac_addrs[ ]. So this can lead to some errors that assumes t
ethdev: fix adding invalid MAC address
Some customers find adding MAC addr to VF sometimes can fail, but it is still stored in dev->data->mac_addrs[ ]. So this can lead to some errors that assumes the non-zero entry in dev->data->mac_addrs[ ] is valid. Following acknowledgements are from specific NIC PMD maintainer for their managing part.
This patch changes the ethdev internal API, it should not be backported to a stable/LTS release so far.
Fixes: af75078fece3 ("first public release")
Signed-off-by: Wei Dai <wei.dai@intel.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
af785e47 |
| 25-Apr-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: fix CFLAGS for base files
Changes included in this fix - limit CFLAGS to base files - fix to remove/mark unused members - add checks for debug config option - make qede_set_mtu() and q
net/qede: fix CFLAGS for base files
Changes included in this fix - limit CFLAGS to base files - fix to remove/mark unused members - add checks for debug config option - make qede_set_mtu() and qede_udp_dst_port_del() static and others non-static as appropriate - move local APIs qede_vlan_offload_set() and qede_rx_cqe_to_pkt_type() - initialize variables as required
Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
a8ebf42f |
| 25-Apr-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: use new stripped VLAN mbuf flags
Use new mbuf flags PKT_RX_VLAN_STRIPPED and PKT_RX_QINQ_STRIPPED introduced by the patch: commit b37b528d957c ("mbuf: add new Rx flags for stripped VLAN")
net/qede: use new stripped VLAN mbuf flags
Use new mbuf flags PKT_RX_VLAN_STRIPPED and PKT_RX_QINQ_STRIPPED introduced by the patch: commit b37b528d957c ("mbuf: add new Rx flags for stripped VLAN")
Signed-off-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
49d8b54e |
| 25-Apr-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: fix default MAC address handling
- In qede_mac_addr_set(), in order to configure default MAC address we first delete the existing MAC address before trying to add new one. During init time
net/qede: fix default MAC address handling
- In qede_mac_addr_set(), in order to configure default MAC address we first delete the existing MAC address before trying to add new one. During init time, there is no MAC filter to begin with, so trying to remove a non-existing MAC address causes a firmware exception. This can be prevented by internally calling qede_mac_addr_add() which has the checks in place to delete a MAC address only if it was added before.
- Remove setting of the default MAC address from within qede_dev_configure() since rte_eth_dev_start() calls mac_addr_set() anyway.
Fixes: 2ea6f76aff40 ("qede: add core driver") Cc: stable@dpdk.org
Signed-off-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
fdf91e0f |
| 11-Apr-2017 |
Jan Blunck <jblunck@infradead.org> |
drivers/net: do not use ethdev driver
Signed-off-by: Jan Blunck <jblunck@infradead.org> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
|
#
c23a1a30 |
| 06-Apr-2017 |
Qi Zhang <qi.z.zhang@intel.com> |
eal: clean up interrupt handle
The patch change the prototype of callback function (rte_intr_callback_fn) by removing the unnecessary parameter.
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
|