[PATCH 0/3] net/enic: support VF and fix minor issues

2024-08-07 Thread Hyong Youb Kim
This series contains minor updates for net/enic. The first patch supports SR-IOV VF, which now requires the use of admin channel. The other patches are not related to VF, but included here to ease review. Hyong Youb Kim (3): net/enic: support SR-IOV VF using admin channel net/enic: add speed

[PATCH 1/3] net/enic: support SR-IOV VF using admin channel

2024-08-07 Thread Hyong Youb Kim
pport only VF_CAPABILITY_REQUEST message or not support the admin channel at all. When the VF driver detects such PF driver, it reverts to the compatibility mode and does not use the admin channel. In this mode, trust mode (e.g. enabling promiscuous mode) does not work. Signed-off-by: Hyong You

[PATCH 2/3] net/enic: add speed capabilities for newer models

2024-08-07 Thread Hyong Youb Kim
Add 1400/14000 and 15000 models to the speed_capa list. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_ethdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index

[PATCH 3/3] net/enic: allow multicast in MAC address add callback

2024-08-07 Thread Hyong Youb Kim
unicast check in enic_set_mac_address(). Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_main.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index e59b0a5077..b755b15d92

[PATCH v2 0/3] net/enic: support VF and fix minor issues

2024-08-07 Thread Hyong Youb Kim
This series contains minor updates for net/enic. The first patch supports SR-IOV VF, which now requires the use of admin channel. The other patches are not related to VF, but included here to ease review. --- v2: * fix compiler warnings Hyong Youb Kim (3): net/enic: support SR-IOV VF using

[PATCH v2 1/3] net/enic: support SR-IOV VF using admin channel

2024-08-07 Thread Hyong Youb Kim
pport only VF_CAPABILITY_REQUEST message or not support the admin channel at all. When the VF driver detects such PF driver, it reverts to the compatibility mode and does not use the admin channel. In this mode, trust mode (e.g. enabling promiscuous mode) does not work. Signed-off-by: Hyong You

[PATCH v2 2/3] net/enic: add speed capabilities for newer models

2024-08-07 Thread Hyong Youb Kim
Add 1400/14000 and 15000 models to the speed_capa list. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_ethdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index

[PATCH v2 3/3] net/enic: allow multicast in MAC address add callback

2024-08-07 Thread Hyong Youb Kim
unicast check in enic_set_mac_address(). Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_main.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index e59b0a5077..b755b15d92

[PATCH v3 0/3] net/enic: support VF and fix minor issues

2024-08-09 Thread Hyong Youb Kim
Hyong Youb Kim (3): net/enic: support SR-IOV VF using admin channel net/enic: add speed capabilities for newer models net/enic: allow multicast in MAC address add callback doc/guides/nics/enic.rst | 123 ++-- doc/guides/rel_notes/release_24_11.rst | 5 + drivers/net/enic

[PATCH v3 1/3] net/enic: support SR-IOV VF using admin channel

2024-08-09 Thread Hyong Youb Kim
pport only VF_CAPABILITY_REQUEST message or not support the admin channel at all. When the VF driver detects such PF driver, it reverts to the compatibility mode and does not use the admin channel. In this mode, trust mode (e.g. enabling promiscuous mode) does not work. Signed-off-by: Hyong You

[PATCH v3 2/3] net/enic: add speed capabilities for newer models

2024-08-09 Thread Hyong Youb Kim
Add 1400/14000 and 15000 models to the speed_capa list. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- doc/guides/nics/enic.rst | 3 ++- doc/guides/rel_notes/release_24_11.rst | 1 + drivers/net/enic/enic_ethdev.c | 21 + 3 files changed

[PATCH v3 3/3] net/enic: allow multicast in MAC address add callback

2024-08-09 Thread Hyong Youb Kim
unicast check in enic_set_mac_address(). Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_main.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index e59b0a5077..b755b15d92

[PATCH v2] net/enic: support GENEVE flow item

2022-01-20 Thread Hyong Youb Kim
Recent VIC models can parse GENEVE, including options, and inner packet headers. Enable GENEVE header and option flow items. Currently, only the first option that follows the GENEVE header can be matched, and the GENEVE header item must specify option length. Signed-off-by: Hyong Youb Kim

[dpdk-dev] [PATCH] net/enic: fix filter mode detection

2021-10-12 Thread Hyong Youb Kim
. So, treat ERR_EPERM as "no filtering available" instead of an unexpected error. Fixes: 322b355f2183 ("net/enic/base: bring NIC interface functions up to date") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/base/vnic_dev.c

[dpdk-dev] [PATCH] net/enic: fix segfault caused by changing MTU

2021-10-25 Thread Hyong Youb Kim
e real Rx handler, not the dummy one set by (2). And, (3) causes a segfault in the real Rx handler (e.g. dereferencing freed structures). Fix the segfault by updating the fast-path pointer as well. Fixes: c87d435a4d79 ("ethdev: copy fast-path API into separate structure") Signed-off-b

[dpdk-dev] [PATCH] net/enic: fix unwanted error message

2021-10-25 Thread Hyong Youb Kim
advanced filtering is a prerequisite, check first if it is available and avoid the error message altogether. Fixes: ea7768b5bba8 ("net/enic: add flow implementation based on Flow Manager API") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net

[PATCH] net/enic: support GENEVE flow item

2022-01-02 Thread Hyong Youb Kim
Recent VIC models can parse GENEVE, including options, and inner packet headers. Enable GENEVE header and option flow items. Currently, only the first option that follows the GENEVE header can be matched, and the GENEVE header item must specify option length. Signed-off-by: Hyong Youb Kim

[dpdk-dev] [PATCH] net/enic: fix the filter type used for flow API

2021-02-01 Thread Hyong Youb Kim
director implementation (enic_clsf.c). Fixes: 26faa126d87e ("net/enic: flow API for NICs with advanced filters disabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d

[dpdk-dev] [PATCH] net/enic: fix a typo in debug message

2021-02-04 Thread Hyong Youb Kim
A debug message for filter API is using a wrong flag. Use the correct one. Fixes: 936a9b9975e7 ("net/enic: flow API debug") Cc: sta...@dpdk.org Reported-by: Hanoch Haim Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c | 2 +- 1 file changed, 1

[dpdk-dev] [PATCH] net/enic: fix header sizes when copying flow patterns

2020-10-30 Thread Hyong Youb Kim
(rte_ether_hdr) and sizeof(rte_ipv6_hdr) instead. Coverity issue: 363572, 363573 Fixes: ea7768b5bba8 ("net/enic: add flow implementation based on Flow Manager API") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_fm_flow.c | 10 +++

[dpdk-dev] [PATCH 0/4] net/enic: minor updates

2018-12-10 Thread Hyong Youb Kim
These are patches for 19.02. Hyong Youb Kim (4): net/enic: release port upon close net/enic: add handler to return firmware version string net/enic: support multicast filtering doc: update release notes for enic doc/guides/nics/features/enic.ini | 3 +- doc/guides/rel_notes

[dpdk-dev] [PATCH 2/4] net/enic: add handler to return firmware version string

2018-12-10 Thread Hyong Youb Kim
Cisco VIC adapters run firmware. Add the fw_version_get handler to help diagnostics. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- doc/guides/nics/features/enic.ini | 1 + drivers/net/enic/base/vnic_dev.c | 26 ++ drivers/net/enic/enic_ethdev.c| 21

[dpdk-dev] [PATCH 1/4] net/enic: release port upon close

2018-12-10 Thread Hyong Youb Kim
Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so rte_eth_dev_close() can later free port resources including mac_addrs. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_ethdev.c | 2 ++ drivers/net/enic/enic_main.c | 4 +--- 2 files changed, 3 insertions(+), 3

[dpdk-dev] [PATCH 4/4] doc: update release notes for enic

2018-12-10 Thread Hyong Youb Kim
Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- doc/guides/rel_notes/release_19_02.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_19_02.rst b/doc/guides/rel_notes/release_19_02.rst index a94fa86a7..4c789d2a9 100644 --- a/doc/guides/rel_notes

[dpdk-dev] [PATCH 3/4] net/enic: support multicast filtering

2018-12-10 Thread Hyong Youb Kim
The VIC hardware has 64 MAC filters per vNIC, which can be either unicast or multicast. Use one half for unicast and the other half for multicast, as the VIC kernel drivers for Linux and Windows do. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- doc/guides/nics/features/enic.ini

Re: [dpdk-dev] [PATCH 4/4] doc: update release notes for enic

2018-12-11 Thread Hyong Youb Kim
On Tue, Dec 11, 2018 at 02:44:43AM +, Varghese, Vipin wrote: > Hi Hyong, > > Thanks for sharing the information a query 'is ENIC Poll Mode Driver is been > updated too?'(Section 16 under Network Interface Controller). > a. If yes is it ok to link the patchwork in comment section? > b. If no

Re: [dpdk-dev] [PATCH 4/4] doc: update release notes for enic

2018-12-11 Thread Hyong Youb Kim
On Tue, Dec 11, 2018 at 04:31:50PM +, Varghese, Vipin wrote: > Hi Hyong, > > snipped > > > Hi Hyong, > > > > > > Thanks for sharing the information a query 'is ENIC Poll Mode Driver is > > > been > > updated too?'(Section 16 under Network Interface Controller). > > > a. If yes is it ok to lin

Re: [dpdk-dev] [PATCH 4/4] doc: update release notes for enic

2018-12-11 Thread Hyong Youb Kim
On Tue, Dec 11, 2018 at 04:49:26PM +, Varghese, Vipin wrote: > snipped [...] > > Apologies if the question was not clear, Let me try again 'Is there plan add > test cases under dpdk/test/test folder?' Not in this cycle. Thanks. -Hyong

[dpdk-dev] [PATCH 0/2] net/bonding: a couple minor fixes

2019-01-10 Thread Hyong Youb Kim
A couple patches for minor issues found during in-house testing. I do not have a strong opinion on the first one, as it is just a warning message not technically a bug. But, the second one addresses an easy-to-reproduce crash. If someone has a better/cleaner fix, I am all ears. Hyong Youb Kim (2

[dpdk-dev] [PATCH 1/2] net/bonding: do not set promisc on non-existent primary port

2019-01-10 Thread Hyong Youb Kim
driver. This warning message is harmless but can be confusing to the user. So do not try to set promisc on a primary port when we know it does not exist (i.e. no slaves). Fixes: 2efb58cbab6e ("bond: new link bonding library") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- dri

[dpdk-dev] [PATCH 2/2] net/bonding: avoid the next active slave going out of bound

2019-01-10 Thread Hyong Youb Kim
rray and causing a crash. Make the rx burst function to first check that active_slave is within bound. If not, reset it to 0 to avoid out-of-range array access. Fixes: e1110e977648 ("net/bonding: fix Rx slave fairness") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- d

Re: [dpdk-dev] [PATCH] app/testpmd: check Rx VLAN offload flag to print VLAN TCI

2018-10-01 Thread Hyong Youb Kim
On Mon, Oct 01, 2018 at 03:01:40PM +0100, Ferruh Yigit wrote: > On 9/26/2018 4:06 AM, John Daley wrote: > > From: Hyong Youb Kim > > > > Since the following commit, PKT_RX_VLAN indicates the presence of > > mbuf's vlan_tci, not PKT_RX_VLAN_STRIPPED. > >

Re: [dpdk-dev] [PATCH v2 2/2] net/enic: add AVX2 based vectorized Rx handler

2018-10-03 Thread Hyong Youb Kim
On Tue, Oct 02, 2018 at 05:08:21PM +0100, Ferruh Yigit wrote: > On 9/28/2018 8:25 PM, John Daley wrote: > > From: Hyong Youb Kim > > > > Add the vectorized version of the no-scatter Rx handler. It aims to > > process 8 descriptors per loop using AVX2 SIMD instructions.

[dpdk-dev] [PATCH 0/3] net/enic: minor bug fixes

2018-10-20 Thread Hyong Youb Kim
73822 ("mbuf: fix Tx offload mask") Hyong Youb Kim (3): net/enic: fix supported packet types net/enic: add missing Tx offload flags doc: update release notes for the enic driver doc/guides/rel_notes/release_18_11.rst | 7 +++ drivers/net/e

[dpdk-dev] [PATCH 1/3] net/enic: fix supported packet types

2018-10-20 Thread Hyong Youb Kim
AVX2 based vectorized Rx handler") Fixes: 93fb21fdbe23 ("net/enic: enable overlay offload for VXLAN and GENEVE") Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_ethdev.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deleti

[dpdk-dev] [PATCH 3/3] doc: update release notes for the enic driver

2018-10-20 Thread Hyong Youb Kim
Fixes: 8a6ff33d6d36 ("net/enic: add AVX2 based vectorized Rx handler") Fixes: 86df6c4e2fce ("net/enic: support flow counter action") Fixes: 70401fd7784d ("net/enic: add VLAN and csum offloads to simple Tx handler") Fixes: c0aae00d7da0 ("net/enic: enable IOVA mo

[dpdk-dev] [PATCH 2/3] net/enic: add missing Tx offload flags

2018-10-20 Thread Hyong Youb Kim
TX_OFFLOAD_MASK. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_main.c | 6 ++ drivers/net/enic/enic_res.c | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index b2581322d..e

Re: [dpdk-dev] [PATCH v3 3/4] fix global variable issues

2018-10-28 Thread Hyong Youb Kim
heck_devargs(struct rte_eth_dev *dev) > return 0; > } > > -struct enic *enicpmd_list_head = NULL; > /* Initialize the driver > * It returns 0 on success. > */ For net/enic. Acked-by: Hyong Youb Kim Thank you. -Hyong

[dpdk-dev] [PATCH] net/enic: use rte macro for attribute weak

2018-11-01 Thread Hyong Youb Kim
Fixes: 8a6ff33d6d36 ("net/enic: add AVX2 based vectorized Rx handler") Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index e81c3f3b7..c3869d

Re: [dpdk-dev] [PATCH 0/7] fix DMA mask check

2018-11-01 Thread Hyong Youb Kim
On Wed, Oct 31, 2018 at 05:47:40PM +, Alejandro Lucero wrote: > On Wed, Oct 31, 2018 at 5:29 PM Alejandro Lucero < > alejandro.luc...@netronome.com> wrote: > > > A patchset sent introducing DMA mask checks has several critical > > issues precluding apps to execute. The patchset was reviewed an

[dpdk-dev] [PATCH] net/enic: fix the size check in Tx prepare handler

2018-11-13 Thread Hyong Youb Kim
The current code wrongly assumes that packets are non-TSO and ends up rejecting large TSO packets. Check non-TSO and TSO max packet sizes separately. Fixes: 5a12c387405a ("net/enic: check maximum packet size in Tx prepare handler") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim R

Re: [dpdk-dev] [dpdk-users] IPV4/IPV6 TCP/UDP Pseudo Header Checksum APIs

2018-11-28 Thread Hyong Youb Kim
On Tue, Oct 23, 2018 at 11:01:58AM +0200, Olivier Matz wrote: > Hi, > > You are right, the current code does not take IP or IPv6 options > in account. I think this should be considered as a bug. > > The fix for IPv4 is not complicated, I did a quick draft here: > http://git.droids-corp.org/?p=dpd

Re: [dpdk-dev] [PATCH] net/enic: pick the right Rx handler after changing MTU

2018-07-13 Thread Hyong Youb Kim
Hi Ferruh, Please ignore this patch, as it never assigns the default handler to rx_pkt_burst. We will send a v2. Sorry about that. On Fri, Jul 13, 2018 at 05:54:52PM -0700, John Daley wrote: > From: Hyong Youb Kim > > enic_set_mtu always reverts to the default Rx handler after chang

Re: [dpdk-dev] [PATCH v2] net/enic: add primary mac address handler

2018-04-16 Thread Hyong Youb Kim
> --- Thanks. The patch looks good to me. I've tested it on top of dpdk-net-next. It works as expected. Acked-by: Hyong Youb Kim > > Changes since v1: > - rebased on dpdk-next-net following mac_addr_set rework, > - since enicpmd_remove_mac_addr() does not return an error cod

Re: [dpdk-dev] [PATCH v2] ethdev: make default behavior CRC strip on Rx

2018-09-11 Thread Hyong Youb Kim
D_SCATTER | > DEV_RX_OFFLOAD_JUMBO_FRAME | > - DEV_RX_OFFLOAD_CRC_STRIP | > DEV_RX_OFFLOAD_VLAN_STRIP | > DEV_RX_OFFLOAD_IPV4_CKSUM | > DEV_RX_OFFLOAD_UDP_CKSUM | For net/enic. Acked-by: Hyong Youb Kim

[dpdk-dev] [PATCH] net/enic: fix flow drop action

2018-05-10 Thread Hyong Youb Kim
Drop is a fate-deciding action, so mark it as FATE. It was missing in a previous commit. Fixes: cc17feb90413 ("ethdev: alter behavior of flow API actions") Signed-off-by: Hyong Youb Kim Cc: adrien.mazarg...@6wind.com --- drivers/net/enic/enic_flow.c | 3 +++ 1 file changed, 3

[dpdk-dev] [PATCH] net/enic: fix CRC strip offload capability

2018-05-14 Thread Hyong Youb Kim
The NIC always strips CRC, so advertise the CRC strip offload in rx_offload_capa. Fixes: 93fb21fdbe23 ("net/enic: enable overlay offload for VXLAN and GENEVE") Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_res.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver

Re: [dpdk-dev] [PATCH] net/enic: fix CRC strip offload capability

2018-05-14 Thread Hyong Youb Kim
On Mon, May 14, 2018 at 12:56:20AM -0700, Hyong Youb Kim wrote: > The NIC always strips CRC, so advertise the CRC strip offload in > rx_offload_capa. Hi Ferruh, Can you discard this patch? We are finding more offload flags are missing. Will submit a new patch that sets them all instead

[dpdk-dev] [PATCH] net/enic: fix missing offload capabilities

2018-05-14 Thread Hyong Youb Kim
transmit has always been supported. Fixes: 93fb21fdbe23 ("net/enic: enable overlay offload for VXLAN and GENEVE") Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_res.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/enic/enic_res.c b/drivers/net/enic/enic_r

Re: [dpdk-dev] [PATCH 3/4] net/enic: support multicast filtering

2019-01-11 Thread Hyong Youb Kim
On Fri, Jan 11, 2019 at 03:46:47PM +, Ferruh Yigit wrote: > On 12/10/2018 6:28 PM, Hyong Youb Kim wrote: > > The VIC hardware has 64 MAC filters per vNIC, which can be either > > unicast or multicast. Use one half for unicast and the other half for > > multicast, as the V

[dpdk-dev] [PATCH 0/2] net/enic: two trivial fixes

2019-01-14 Thread Hyong Youb Kim
Hyong Youb Kim (2): net/enic: remove useless include net/enic: remove redundant log level check drivers/net/enic/enic_clsf.c | 2 -- drivers/net/enic/enic_ethdev.c | 9 - drivers/net/enic/enic_main.c | 1 - 3 files changed, 4 insertions(+), 8 deletions(-) -- 2.16.2

[dpdk-dev] [PATCH 2/2] net/enic: remove redundant log level check

2019-01-14 Thread Hyong Youb Kim
Fixes: 8d496995346c ("net/enic: support multicast filtering") Cc: sta...@dpdk.org Suggested-by: Ferruh Yigit Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_ethdev.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/enic/enic_ethdev.c

[dpdk-dev] [PATCH 1/2] net/enic: remove useless include

2019-01-14 Thread Hyong Youb Kim
libgen.h is not used, so do not include it. Fixes: fefed3d1e62c ("enic: new driver") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_clsf.c | 2 -- drivers/net/enic/enic_main.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/net/enic/eni

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/bonding: fix reset active slave

2019-02-20 Thread Hyong Youb Kim
On Wed, Feb 20, 2019 at 02:56:36PM +, Radu Nicolau wrote: > > > On 2/20/2019 12:33 PM, Ferruh Yigit wrote: > > On 2/18/2019 3:58 PM, Radu Nicolau wrote: > > > > > > On 2/18/2019 11:59 AM, Hari Kumar Vemula wrote: > > > > test_alb_reply_from_client test fails due to incorrect active slave > >

[dpdk-dev] [PATCH 02/15] net/enic: fix flow director SCTP matching

2019-02-27 Thread Hyong Youb Kim
the input argument, and use const in function signatures to make the intention clear. Also move a couple function declarations to enic_clsf.c from enic.h as they are strictly local. Fixes: dfbd6a9cb504 ("net/enic: extend flow director support for 1300 series") Cc: sta...@dpdk.org Signe

[dpdk-dev] [PATCH 01/15] net/enic: remove unused code

2019-02-27 Thread Hyong Youb Kim
Remove unused functions. Specifically, vnic_set_rss_key() is obsolete. enic_{add,del}_vlan() has never been supported in the firmware. And, remove vnic_rss.c altogether as it becomes empty. These were discovered by cppcheck. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net

[dpdk-dev] [PATCH 00/15] net/enic: 19.05 updates

2019-02-27 Thread Hyong Youb Kim
s into struct"). I will submit backport request for these separately, after rc1. Hyong Youb Kim (15): net/enic: remove unused code net/enic: fix flow director SCTP matching net/enic: fix SCTP match for flow API net/enic: allow flow mark ID 0 net/enic: check for unsupported flow item t

[dpdk-dev] [PATCH 03/15] net/enic: fix SCTP match for flow API

2019-02-27 Thread Hyong Youb Kim
or handler does the same (enic_clsf.c). Fixes: 6ced137607d0 ("net/enic: flow API for NICs with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c | 28 ++-- 1 file changed,

[dpdk-dev] [PATCH 05/15] net/enic: check for unsupported flow item types

2019-02-27 Thread Hyong Youb Kim
with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/net/enic/enic_flow.c b/drivers/net/enic/enic_flow.c index

[dpdk-dev] [PATCH 07/15] net/enic: enable limited PASSTHRU flow action

2019-02-27 Thread Hyong Youb Kim
Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_flow.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/enic/enic_flow.c b/drivers/net/enic/enic_flow.c index 0f6b6b930..c6ed9e1b9 100644 --- a/drivers/net/enic/enic_flow.c +++ b/drivers/net/enic/enic_flow.c

[dpdk-dev] [PATCH 08/15] net/enic: move arguments into struct

2019-02-27 Thread Hyong Youb Kim
purely mechanical and have no impact on functionalities. Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_flow.c | 209 ++- 1 file changed, 67 insertions(+), 142 deletions(-) diff --git a/drivers/net/enic/enic_flow.c b/drivers/net/enic/enic_flow.c

[dpdk-dev] [PATCH 04/15] net/enic: allow flow mark ID 0

2019-02-27 Thread Hyong Youb Kim
Fixes: dfbd6a9cb504 ("net/enic: extend flow director support for 1300 series") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c| 15 +++ drivers/net/enic/enic_rxtx_common.h | 3 ++- 2 files changed, 13 insertions(

[dpdk-dev] [PATCH 06/15] net/enic: enable limited RSS flow action

2019-02-27 Thread Hyong Youb Kim
ARK is not a fate-deciding action. And, the RSS action has a most basic config: default hash, level, types, null key, and identity queue mapping. Recent VIC adapters can support these "mark and receive" flow rules. So, enable support for RSS action for this limited use case. Signed-of

[dpdk-dev] [PATCH 10/15] net/enic: initialize VXLAN port regardless of overlay offload

2019-02-27 Thread Hyong Youb Kim
match vxlan. So always reset the port number when HW vxlan parsing is available. Fixes: 8a4efd17410c ("net/enic: add handlers to add/delete vxlan port number") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_main.c | 9 - 1 file changed, 8 insert

[dpdk-dev] [PATCH 12/15] net/enic: fix an endian bug in VLAN match

2019-02-27 Thread Hyong Youb Kim
The VLAN fields in the NIC filter use little endian. The VLAN item is in big endian, so swap bytes. Fixes: 6ced137607d0 ("net/enic: flow API for NICs with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_flow.c | 12 --

[dpdk-dev] [PATCH 11/15] net/enic: fix a couple issues with VXLAN match

2019-02-27 Thread Hyong Youb Kim
/enic: flow API for NICs with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_flow.c | 46 +++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_flow.c b/drivers/

[dpdk-dev] [PATCH 09/15] net/enic: enable limited support for RAW flow item

2019-02-27 Thread Hyong Youb Kim
Some apps like VPP use a raw item to match UDP tunnel headers like VXLAN or GENEVE. The NIC hardware supports such usage via L5 match, which does pattern match on packet data immediately following the outer L4 header. Accept raw items for these limited use cases. Signed-off-by: Hyong Youb Kim

[dpdk-dev] [PATCH 14/15] doc: update enic guide

2019-02-27 Thread Hyong Youb Kim
Minor changes to text around flow API. - Add vlan to the supported items. - Describe VLAN stripping's effect on ETH/VLAN match - Mention limitations on MARK, RAW, RSS, and PASSTHRU Signed-off-by: Hyong Youb Kim --- doc/guides/nics/enic.rst | 16 ++-- 1 file changed, 14 inser

[dpdk-dev] [PATCH 13/15] net/enic: fix several issues with inner packet matching

2019-02-27 Thread Hyong Youb Kim
are mechanical, due to reduced indentation. Fixes: 6ced137607d0 ("net/enic: flow API for NICs with advanced filters enabled") Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_flow.c | 371 ++- 1 file changed, 224 insertions(+), 147 del

[dpdk-dev] [PATCH 15/15] doc: update release notes for enic

2019-02-27 Thread Hyong Youb Kim
Signed-off-by: Hyong Youb Kim --- doc/guides/rel_notes/release_19_05.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_19_05.rst b/doc/guides/rel_notes/release_19_05.rst index 4a3e2a7f3..9226dc5e9 100644 --- a/doc/guides/rel_notes/release_19_05.rst +++ b

Re: [dpdk-dev] [PATCH 00/15] net/enic: 19.05 updates

2019-03-01 Thread Hyong Youb Kim
On Fri, Mar 01, 2019 at 03:26:24PM +0100, Thomas Monjalon wrote: > Hi, > > > Hyong Youb Kim (15): > > net/enic: remove unused code > > net/enic: fix flow director SCTP matching > > net/enic: fix SCTP match for flow API > > net/enic: allow flow

[dpdk-dev] [PATCH v2 01/13] net/enic: remove unused code

2019-03-02 Thread Hyong Youb Kim
Remove unused functions. Specifically, vnic_set_rss_key() is obsolete. enic_{add,del}_vlan() has never been supported in the firmware. And, remove vnic_rss.c altogether as it becomes empty. These were discovered by cppcheck. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net

[dpdk-dev] [PATCH v2 02/13] net/enic: fix flow director SCTP matching

2019-03-02 Thread Hyong Youb Kim
the input argument, and use const in function signatures to make the intention clear. Also move a couple function declarations to enic_clsf.c from enic.h as they are strictly local. Fixes: dfbd6a9cb504 ("net/enic: extend flow director support for 1300 series") Cc: sta...@dpdk.org Signe

[dpdk-dev] [PATCH v2 03/13] net/enic: fix SCTP match for flow API

2019-03-02 Thread Hyong Youb Kim
or handler does the same (enic_clsf.c). Fixes: 6ced137607d0 ("net/enic: flow API for NICs with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c | 28 ++-- 1 file changed,

[dpdk-dev] [PATCH v2 00/13] net/enic: 19.05 updates

2019-03-02 Thread Hyong Youb Kim
s into struct"). I will submit backport request for these separately, after rc1. --- v2: * Merge doc changes with corresponding code changes. Hyong Youb Kim (13): net/enic: remove unused code net/enic: fix flow director SCTP matching net/enic: fix SCTP match for flow API net/enic: all

[dpdk-dev] [PATCH v2 04/13] net/enic: allow flow mark ID 0

2019-03-02 Thread Hyong Youb Kim
Fixes: dfbd6a9cb504 ("net/enic: extend flow director support for 1300 series") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- doc/guides/nics/enic.rst| 1 + drivers/net/enic/enic_flow.c| 15 +++ drivers/net/enic/enic_rxtx_commo

[dpdk-dev] [PATCH v2 05/13] net/enic: check for unsupported flow item types

2019-03-02 Thread Hyong Youb Kim
with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/net/enic/enic_flow.c b/drivers/net/enic/enic_flow.c index

[dpdk-dev] [PATCH v2 07/13] net/enic: enable limited PASSTHRU flow action

2019-03-02 Thread Hyong Youb Kim
Signed-off-by: Hyong Youb Kim --- doc/guides/nics/enic.rst | 6 +- doc/guides/rel_notes/release_19_05.rst | 1 + drivers/net/enic/enic_flow.c | 20 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/enic.rst b/doc/g

[dpdk-dev] [PATCH v2 06/13] net/enic: enable limited RSS flow action

2019-03-02 Thread Hyong Youb Kim
ARK is not a fate-deciding action. And, the RSS action has a most basic config: default hash, level, types, null key, and identity queue mapping. Recent VIC adapters can support these "mark and receive" flow rules. So, enable support for RSS action for this limited use case. Signed-of

[dpdk-dev] [PATCH v2 09/13] net/enic: enable limited support for RAW flow item

2019-03-02 Thread Hyong Youb Kim
Some apps like VPP use a raw item to match UDP tunnel headers like VXLAN or GENEVE. The NIC hardware supports such usage via L5 match, which does pattern match on packet data immediately following the outer L4 header. Accept raw items for these limited use cases. Signed-off-by: Hyong Youb Kim

[dpdk-dev] [PATCH v2 08/13] net/enic: move arguments into struct

2019-03-02 Thread Hyong Youb Kim
purely mechanical and have no impact on functionalities. Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_flow.c | 209 ++- 1 file changed, 67 insertions(+), 142 deletions(-) diff --git a/drivers/net/enic/enic_flow.c b/drivers/net/enic/enic_flow.c

[dpdk-dev] [PATCH v2 10/13] net/enic: reset VXLAN port regardless of overlay offload

2019-03-02 Thread Hyong Youb Kim
match vxlan. So always reset the port number when HW vxlan parsing is available. Fixes: 8a4efd17410c ("net/enic: add handlers to add/delete vxlan port number") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_main.c | 9 - 1 file changed, 8 insert

[dpdk-dev] [PATCH v2 12/13] net/enic: fix an endian bug in VLAN match

2019-03-02 Thread Hyong Youb Kim
The VLAN fields in the NIC filter use little endian. The VLAN item is in big endian, so swap bytes. Fixes: 6ced137607d0 ("net/enic: flow API for NICs with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- doc/guides/nics/enic.rst | 10 -- d

[dpdk-dev] [PATCH v2 13/13] net/enic: fix several issues with inner packet matching

2019-03-02 Thread Hyong Youb Kim
are mechanical, due to reduced indentation. Fixes: 6ced137607d0 ("net/enic: flow API for NICs with advanced filters enabled") Signed-off-by: Hyong Youb Kim --- doc/guides/rel_notes/release_19_05.rst | 2 + drivers/net/enic/enic_flow.c | 371 -

[dpdk-dev] [PATCH v2 11/13] net/enic: fix a couple issues with VXLAN match

2019-03-02 Thread Hyong Youb Kim
/enic: flow API for NICs with advanced filters enabled") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_flow.c | 46 +++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_flow.c b/drivers/

[dpdk-dev] [PATCH] net/enic: add private API to set ingress VLAN rewrite mode

2019-03-04 Thread Hyong Youb Kim
The driver currently has a devarg to set the rewrite mode during init. Some apps want to programatically set it after running rte_eal_init() and finding that ports are VIC. Add a private function to support such applications. Signed-off-by: Hyong Youb Kim --- drivers/net/enic/Makefile

[dpdk-dev] [PATCH v2] net/enic: add private API to set ingress VLAN rewrite mode

2019-03-04 Thread Hyong Youb Kim
The driver currently has a devarg to set the rewrite mode during init. Some apps want to programatically set it after running rte_eal_init() and finding that ports are VIC. Add a private function to support such applications. Signed-off-by: Hyong Youb Kim --- v2: * Move symbol to the

Re: [dpdk-dev] [PATCH] net/enic: enable overlay offload for VXLAN and GENEVE

2018-04-07 Thread Hyong Youb Kim
On Fri, Apr 06, 2018 at 05:15:40PM +0100, Ferruh Yigit wrote: > On 4/5/2018 12:54 AM, John Daley wrote: > > From: Hyong Youb Kim > > > > Recent NIC models support overlay offload. The overlay offload > > feature enables the following on the NIC. > > - Rx/Tx che

Re: [dpdk-dev] [PATCH v4 15/15] net/enic: use _rte_eth_linkstatus_set

2018-01-14 Thread Hyong Youb Kim
> > Signed-off-by: Stephen Hemminger > --- Here is an ack, in case you need it. Please feel free to add it to v4 if you make it (i.e. dropping the leading _). Acked-by: Hyong Youb Kim FWIW, the NIC hardware (Cisco VIC) does autonegotiate. But, the link settings (autoneg/fixed/10/25

Re: [dpdk-dev] [PATCH] net/enic: set L4 checksum flags for IPv6 packets

2018-01-24 Thread Hyong Youb Kim
On Wed, Jan 24, 2018 at 05:18:37PM +, Ferruh Yigit wrote: > On 1/23/2018 1:05 AM, John Daley wrote: > > From: Hyong Youb Kim > > > > enic_cq_rx_to_pkt_flags() currently sets checksum good/bad flags only > > for IPv4. The hardware actually validates the TCP/UDP c

Re: [dpdk-dev] [PATCH] net/enic: set L4 checksum flags for IPv6 packets

2018-01-24 Thread Hyong Youb Kim
On Wed, Jan 24, 2018 at 05:45:48PM +, Ferruh Yigit wrote: > On 1/24/2018 5:30 PM, Hyong Youb Kim wrote: > > On Wed, Jan 24, 2018 at 05:18:37PM +, Ferruh Yigit wrote: > >> On 1/23/2018 1:05 AM, John Daley wrote: > >>> From: Hyong Youb Kim > >>>

Re: [dpdk-dev] [PATCH 09/18] net/enic: align dynamic log names with standard

2018-01-25 Thread Hyong Youb Kim
On Thu, Jan 25, 2018 at 09:01:01AM +, Harry van Haaren wrote: > This commit aligns the names for dynamic logging with > the newly defined logging format. > > Signed-off-by: Harry van Haaren Acked-by: Hyong Youb Kim

Re: [dpdk-dev] [PATCH v3 03/10] net/enic: heed the requested max Rx packet size

2018-03-09 Thread Hyong Youb Kim
On Fri, Mar 09, 2018 at 03:57:46PM +, Ferruh Yigit wrote: > On 3/9/2018 3:51 PM, Ananyev, Konstantin wrote: [...] > >> Is this work based on an application that uses max_rx_pkt_len and to make > >> PMD > >> compatible with that application? If so we can continue with patch, but if > >> the >

Re: [dpdk-dev] [PATCH v3 00/10] enic PMD patchset

2018-03-09 Thread Hyong Youb Kim
On Fri, Mar 09, 2018 at 04:00:55PM +, Ferruh Yigit wrote: [...] > Series applied to dpdk-next-net/master, thanks. > > (typo in 2/10 fixed while applying) Thanks a lot for fixing that. Adding "build with assert enabled" to our checklist.. -Hyong

Re: [dpdk-dev] [PATCH] net/enic: add primary mac address handler

2018-02-19 Thread Hyong Youb Kim
On Mon, Feb 19, 2018 at 01:42:27PM +0100, David Marchand wrote: > Reused the .mac_addr_add and .mac_addr_del callbacks code to implement > primary mac address handler. > > Signed-off-by: David Marchand Hi, thanks for taking a stab at this. > +static void enicpmd_set_mac_addr(struct rte_eth_dev

Re: [dpdk-dev] [PATCH] net/enic: add primary mac address handler

2018-02-20 Thread Hyong Youb Kim
On Tue, Feb 20, 2018 at 10:17:34AM +0100, David Marchand wrote: [...] > Btw, I had forgotten about the deprecation notice [1] sent by Olivier. > Just discussed it with him, let's wait for this change before looking > at the issue again. > > > 1: > http://dpdk.org/browse/dpdk/commit/doc?id=16a700

Re: [dpdk-dev] [PATCH v3 08/10] doc: describe Rx bytes counter behavior for enic

2018-03-08 Thread Hyong Youb Kim
On Thu, Mar 08, 2018 at 02:14:27PM -0800, Stephen Hemminger wrote: > On Wed, 7 Mar 2018 18:47:00 -0800 > John Daley wrote: > > > 'catch-all' filters should be added last. > > > > +- **Statistics** > > + > > + - ``rx_good_bytes`` (ibytes) always includes VLAN header (4B) and CRC > > byte

Re: [dpdk-dev] [PATCH v2] net/enic: add private API to set ingress VLAN rewrite mode

2019-03-13 Thread Hyong Youb Kim
On Wed, Mar 13, 2019 at 10:29:53PM +0100, Thomas Monjalon wrote: > 13/03/2019 22:11, John Daley (johndale): > > From: Thomas Monjalon > > > 13/03/2019 19:32, Ferruh Yigit: > > > > On 3/5/2019 7:11 AM, Hyong Youb Kim wrote: > > > > > The driver currentl

[dpdk-dev] [PATCH] net/enic: fix max MTU calculation

2019-03-14 Thread Hyong Youb Kim
MTU to max HW value). This change incidentally allows such apps to change MTU to max value successfully. Fixes: bb34ffb848a0 ("net/enic: determine max egress packet size and max MTU") Cc: sta...@dpdk.org Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic

Re: [dpdk-dev] [PATCH v2] net/enic: add private API to set ingress VLAN rewrite mode

2019-03-25 Thread Hyong Youb Kim
[...] > > > I see it can work if an application always wants this config option to > > > have > > > *same* value. So it can set this in eal_init() always. > > > > > > This requires "driver=xxx,key=value" kind of support in devargs. > > > > > > > > > John, Hyong, > > > > > > I guess some lev

  1   2   >