#
bfea01bc |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: move datapath RxQ handle to shared RxQ info
If datapath supports multi-process, it should be possible to get its RxQ structure by the queue index.
Signed-off-by: Andrew Rybchenko <arybchen
net/sfc: move datapath RxQ handle to shared RxQ info
If datapath supports multi-process, it should be possible to get its RxQ structure by the queue index.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
2e42d78d |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: move RxQ state to multi-process shared location
Secondary process needs to know RxQ state. RxQ control structure will become primary process private.
Signed-off-by: Andrew Rybchenko <arybc
net/sfc: move RxQ state to multi-process shared location
Secondary process needs to know RxQ state. RxQ control structure will become primary process private.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
f52fa243 |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: move main log type to process private data
Dynamic log type value may differ in primary and secondary processes.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
|
#
5dec95e3 |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: move datapath ops pointers to process private data
The change is required to support datapath-dependent device operations for secondary process. It is just a step in the direction.
Signed-
net/sfc: move datapath ops pointers to process private data
The change is required to support datapath-dependent device operations for secondary process. It is just a step in the direction.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
c7b57f00 |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: make it simpler to change datapath ops location
Rx and Tx datapath ops should be stored in process private data since these structures are located in the data section (not allocated from sh
net/sfc: make it simpler to change datapath ops location
Rx and Tx datapath ops should be stored in process private data since these structures are located in the data section (not allocated from shared memory).
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
768629c6 |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: remove wrappers around Rx descriptor count and done
These wrappers are used in single place and just complicate reading and understanding if these ops could be supported in secondary proces
net/sfc: remove wrappers around Rx descriptor count and done
These wrappers are used in single place and just complicate reading and understanding if these ops could be supported in secondary process.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
b57870f2 |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: avoid usage of TxQ control structure in info get
TxQ control structure contains primary process only data and will become primary process only. TxQ info get is supported in secondary proces
net/sfc: avoid usage of TxQ control structure in info get
TxQ control structure contains primary process only data and will become primary process only. TxQ info get is supported in secondary process.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
5befcecb |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: avoid usage of RxQ control structure in info get
RxQ control structure contains primary process only data and will become primary process only. RxQ info get is supported in secondary proces
net/sfc: avoid usage of RxQ control structure in info get
RxQ control structure contains primary process only data and will become primary process only. RxQ info get is supported in secondary process.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
e2c3639a |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: fix logging from secondary process
Dynamic log type value may differ in different processes.
Fixes: f28ede500c2e ("net/sfc: support multi-process") Cc: stable@dpdk.org
Signed-off-by: Andr
net/sfc: fix logging from secondary process
Dynamic log type value may differ in different processes.
Fixes: f28ede500c2e ("net/sfc: support multi-process") Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
bd6e5106 |
| 07-Feb-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: remove control path logging from Rx queue count
Rx queue count may be used from data core and it should not generate control path logs.
Fixes: 04aa6b9c5fd7 ("net/sfc: get RxQ pending descr
net/sfc: remove control path logging from Rx queue count
Rx queue count may be used from data core and it should not generate control path logs.
Fixes: 04aa6b9c5fd7 ("net/sfc: get RxQ pending descriptors count") Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
ab77a001 |
| 17-Jan-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: fix Rx packets counter
Errors, missed and pauses should not be included in delivered good Rx packets reported by ipackets.
Fixes: 1caab2f1e684 ("net/sfc: add basic statistics") Cc: stable@
net/sfc: fix Rx packets counter
Errors, missed and pauses should not be included in delivered good Rx packets reported by ipackets.
Fixes: 1caab2f1e684 ("net/sfc: add basic statistics") Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
7f7bdb59 |
| 16-Jan-2019 |
Ivan Malov <ivan.malov@oktetlabs.ru> |
net/sfc: fix datapath name references in logs
Rx and Tx datapath references were mixed up in a couple of log statements and commentary blocks in the original commit. Correct datapath name references
net/sfc: fix datapath name references in logs
Rx and Tx datapath references were mixed up in a couple of log statements and commentary blocks in the original commit. Correct datapath name references in said places.
Fixes: f28ede500c2e ("net/sfc: support multi-process") Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
24f8a959 |
| 16-Jan-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: fix VF error/missed stats mapping
VADAPTER_RX_OVERFLOW means Rx statistics overflow, not a missed packet because of overflow.
VADAPTER_RX_BAD_PACKETS accumulates a number of error conditio
net/sfc: fix VF error/missed stats mapping
VADAPTER_RX_OVERFLOW means Rx statistics overflow, not a missed packet because of overflow.
VADAPTER_RX_BAD_PACKETS accumulates a number of error conditions, but mainly impossibility to deliver because of no descriptors available, so it is better to classify it as imissed.
Fixes: 1caab2f1e684 ("net/sfc: add basic statistics") Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
e16adf08 |
| 19-Oct-2018 |
Thomas Monjalon <thomas@monjalon.net> |
ethdev: free all common data when releasing port
This is a clean-up of common ethdev data freeing. All data freeing are moved to rte_eth_dev_release_port() and done only in case of primary process.
ethdev: free all common data when releasing port
This is a clean-up of common ethdev data freeing. All data freeing are moved to rte_eth_dev_release_port() and done only in case of primary process.
It is probably fixing some memory leaks for PMDs which were not freeing all data.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
662e3822 |
| 11-Oct-2018 |
Ivan Malov <ivan.malov@oktetlabs.ru> |
net/sfc: allow to query RSS key and HF when RSS is disabled
If global RSS is not enabled in the multiqueue mode setting, it will not be possible to change RSS configuration. However, querying defaul
net/sfc: allow to query RSS key and HF when RSS is disabled
If global RSS is not enabled in the multiqueue mode setting, it will not be possible to change RSS configuration. However, querying default RSS settings should be possible in any case since it may be needed by RTE flow API users to find out what RSS settings will be used by default for a flow rule with RSS action if custom RSS key and hash function choice are not specified.
Fixes: 63ab5e0c8fda ("net/sfc: use zero RSS channels as disabled RSS indicator") Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
453e1d4b |
| 11-Oct-2018 |
Ivan Malov <ivan.malov@oktetlabs.ru> |
net/sfc: allow to query RSS key and HF in isolated mode
Isolated mode prevents global RSS from being enabled and configured. However, an application may need to query default RSS key and hash functi
net/sfc: allow to query RSS key and HF in isolated mode
Isolated mode prevents global RSS from being enabled and configured. However, an application may need to query default RSS key and hash functions when a flow rule with RSS action is added which does not contain custom RSS key or hash function choice. In this case global RSS key and hash functions will be used to handle the rule, and there should be some way for the application to query these global default settings to clarify expectations on the traffic distribution.
Fixes: 84a9b48128c1 ("net/sfc: support flow API isolated mode") Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
5d138ef9 |
| 14-Sep-2018 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
net/sfc: fix a Tx queue double release possibility
There are two function that call sfc_tx_qfini(): sfc_tx_fini_queues() and sfc_tx_queue_release(). But only sfc_tx_queue_release() sets tx_queues po
net/sfc: fix a Tx queue double release possibility
There are two function that call sfc_tx_qfini(): sfc_tx_fini_queues() and sfc_tx_queue_release(). But only sfc_tx_queue_release() sets tx_queues pointer of the device data to NULL. It may lead to the scenario in which a queue is destroyed by sfc_tx_fini_queues() and after the queue is attempted to be destroyed again by sfc_tx_queue_release().
Move NULL assignment to sfc_tx_qfini().
Fixes: b1b7ad933b39 ("net/sfc: set up and release Tx queues") Cc: stable@dpdk.org
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
7eb7588c |
| 14-Sep-2018 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
net/sfc: fix an Rx queue double release possibility
There are two function that call sfc_rx_qfini(): sfc_rx_fini_queues() and sfc_rx_queue_release(). But only sfc_rx_queue_release() sets rx_queues p
net/sfc: fix an Rx queue double release possibility
There are two function that call sfc_rx_qfini(): sfc_rx_fini_queues() and sfc_rx_queue_release(). But only sfc_rx_queue_release() sets rx_queues pointer of the device data to NULL. It may lead to the scenario in which a queue is destroyed by sfc_rx_fini_queues() and after the queue is attempted to be destroyed again by sfc_rx_queue_release().
Move NULL assignment to sfc_rx_qfini().
Fixes: ce35b05c635e ("net/sfc: implement Rx queue setup release operations") Cc: stable@dpdk.org
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
862b35af |
| 29-Aug-2018 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
net/sfc: support runtime Tx queue setup
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
|
#
0668a27a |
| 29-Aug-2018 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
net/sfc: support runtime Rx queue setup
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
|
#
d0dcfe98 |
| 18-Jul-2018 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: fix assert in set multicast address list
Return value equal to zero means success and really expected.
Fixes: 0fa0070e4391 ("net/sfc: support multicast addresses list controls") Cc: stable
net/sfc: fix assert in set multicast address list
Return value equal to zero means success and really expected.
Fixes: 0fa0070e4391 ("net/sfc: support multicast addresses list controls") Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
b7294d88 |
| 15-Jul-2018 |
Andrew Rybchenko <arybchenko@solarflare.com> |
net/sfc: fix Rx queue offloads reporting in queue info
CRC_STRIP offload is always enabled, but lost here.
It is more robust to use device level offloads directly to compose returned value.
Fixes:
net/sfc: fix Rx queue offloads reporting in queue info
CRC_STRIP offload is always enabled, but lost here.
It is more robust to use device level offloads directly to compose returned value.
Fixes: ff6a1197c3b1 ("net/sfc: convert to new Rx offload API") Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
show more ...
|
#
f8e99896 |
| 18-Jun-2018 |
Thomas Monjalon <thomas@monjalon.net> |
remove useless constructor headers
A constructor is usually declared with RTE_INIT* macros. As it is a static function, no need to declare before its definition. The macro is used directly in the fu
remove useless constructor headers
A constructor is usually declared with RTE_INIT* macros. As it is a static function, no need to declare before its definition. The macro is used directly in the function definition.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
ab3ce1e0 |
| 02-Jul-2018 |
Ferruh Yigit <ferruh.yigit@intel.com> |
ethdev: remove old offload API
In DPDK 17.11, the ethdev offloads API has changed: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") commit ce17eddefc20 ("ethdev: introduce Rx queue
ethdev: remove old offload API
In DPDK 17.11, the ethdev offloads API has changed: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") The new API is documented in the programmer's guide: http://doc.dpdk.org/guides/prog_guide/poll_mode_drv.html#hardware-offload
For reminder, the main concepts in the new API were: - All offloads are disabled by default - Distinction between per port and per queue offloads.
The transition bits are now removed: - Translation of the old API in ethdev - rte_eth_conf.rxmode.ignore_offload_bitfield - ETH_TXQ_FLAGS_IGNORE
The old API bits are now removed: - Rx per-port rte_eth_conf.rxmode.[bit-fields] - Tx per-queue rte_eth_txconf.txq_flags - ETH_TXQ_FLAGS_NO*
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Shahaf Shuler <shahafs@mellanox.com>
show more ...
|
#
ed5b9848 |
| 14-May-2018 |
Andy Green <andy@warmcat.com> |
net/sfc: make sure that stats name is nul-terminated
Fixes: 73280c1e4ff2 ("net/sfc: support xstats retrieval by ID") Fixes: 7b9891769f4b ("net/sfc: support extended statistics") Cc: stable@dpdk.org
net/sfc: make sure that stats name is nul-terminated
Fixes: 73280c1e4ff2 ("net/sfc: support xstats retrieval by ID") Fixes: 7b9891769f4b ("net/sfc: support extended statistics") Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|