[dpdk-dev] [PATCH v8 2/2] doc: annouce deprecation of jumbo frame flag condition

2020-11-02 Thread SteveX Yang
xgbe; Signed-off-by: SteveX Yang --- doc/guides/rel_notes/deprecation.rst | 12 1 file changed, 12 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 2e082499b..fae139f01 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/

[dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-11-02 Thread SteveX Yang
When the max rx packet length is smaller than the sum of mtu size and ether overhead size, it should be enlarged, otherwise the VLAN packets will be dropped. Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Signed-off-by: SteveX Yang --- app/test-pmd/test

[dpdk-dev] [PATCH v8 0/2] fix default max mtu size when device configured

2020-11-02 Thread SteveX Yang
comments and commit messages; v4: * add the adjust condition for max_rx_pkt_len; v3: * change the i40evf relative code; v2: * change the max_rx_pkt_len via mtu_set ops; SteveX Yang (2): app/testpmd: fix max rx packet length for VLAN packets doc: annouce deprecation of jumbo frame flag condition

[dpdk-dev] [PATCH v7 1/1] app/testpmd: fix max rx packet length for VLAN packets

2020-10-27 Thread SteveX Yang
When the max rx packet length is smaller than the sum of mtu size and ether overhead size, it should be enlarged, otherwise the VLAN packets will be dropped. Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Signed-off-by: SteveX Yang --- app/test-pmd/test

[dpdk-dev] [PATCH v7 0/1] fix default max mtu size when device configured

2020-10-27 Thread SteveX Yang
max_rx_pkt_len; v3: * change the i40evf relative code; v2: * change the max_rx_pkt_len via mtu_set ops; SteveX Yang (1): app/testpmd: fix max rx packet length for VLAN packets app/test-pmd/testpmd.c | 20 1 file changed, 20 insertions(+) -- 2.17.1

[dpdk-dev] [PATCH v6 2/2] librte_ethdev: fix MTU size exceeds max rx packet length

2020-10-22 Thread SteveX Yang
If max rx packet length is smaller then MTU + Ether overhead, that will drop all MTU size packets. Update the MTU size according to the max rx packet and Ether overhead. Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") Signed-off-by: SteveX Yang --- lib/librte_ethdev/rte_eth

[dpdk-dev] [PATCH v6 1/2] app/testpmd: fix max rx packet length for VLAN packets

2020-10-22 Thread SteveX Yang
When the max rx packet length is smaller than the sum of mtu size and ether overhead size, it should be enlarged, otherwise the VLAN packets will be dropped. Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Signed-off-by: SteveX Yang --- app/test-pmd/test

[dpdk-dev] [PATCH v6 0/2] fix default max mtu size when device configured

2020-10-22 Thread SteveX Yang
value in the rte_ethdev; v5: * update comments and commit messages; v4: * add the adjust condition for max_rx_pkt_len; v3: * change the i40evf relative code; v2: * change the max_rx_pkt_len via mtu_set ops; SteveX Yang (2): app/testpmd: fix max rx packet length for VLAN packets librte_ethdev

[dpdk-dev] [PATCH v5 5/5] net/iavf: fix max mtu size packets with vlan tag cannot be received by default

2020-10-14 Thread SteveX Yang
ename remaining avf strings") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 93e26c768..8b1cf8f1c 100644 --- a/drivers/net/iavf/iavf_ethd

[dpdk-dev] [PATCH v5 4/5] net/i40e: fix max mtu size packets with vlan tag cannot be received by default

2020-10-14 Thread SteveX Yang
sider QinQ when setting MTU") Signed-off-by: SteveX Yang --- drivers/net/i40e/i40e_ethdev.c| 11 +++ drivers/net/i40e/i40e_ethdev_vf.c | 13 - 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethd

[dpdk-dev] [PATCH v5 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-10-14 Thread SteveX Yang
x max frame size") Signed-off-by: SteveX Yang --- drivers/net/ice/ice_ethdev.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 0056da78a..a707612c2 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drive

[dpdk-dev] [PATCH v5 2/5] net/igc: fix max mtu size packets with vlan tag cannot be received by default

2020-10-14 Thread SteveX Yang
pport Rx and Tx") Signed-off-by: SteveX Yang --- drivers/net/igc/igc_ethdev.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/net/igc/igc_ethdev.c b/drivers/net/igc/igc_ethdev.c index 7f5066df4..98e98b3e4 100644 --- a/drivers/net/igc/igc_ethdev.c +++

[dpdk-dev] [PATCH v5 1/5] net/e1000: fix max mtu size packets with vlan tag cannot be received by default

2020-10-14 Thread SteveX Yang
d rte prefix to ether defines") Signed-off-by: SteveX Yang --- drivers/net/e1000/em_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index d050eb478..d2cf318f8 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/d

[dpdk-dev] [PATCH v5 0/5] fix default max mtu size when device configured

2020-10-14 Thread SteveX Yang
messages; v4: * add the adjust condition for max_rx_pkt_len; v3: * change the i40evf relative code; v2: * change the max_rx_pkt_len via mtu_set ops; SteveX Yang (5): net/e1000: fix max mtu size packets with vlan tag cannot be received by default net/igc: fix max mtu size packets with vlan tag

[dpdk-dev] [PATCH v4 5/5] net/iavf: fix max mtu size packets with vlan tag cannot be received by default

2020-09-28 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 02d212ca3125 ("net/iavf: rename remaining avf strings") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 12 1 file changed, 12 insertions(+

[dpdk-dev] [PATCH v4 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-09-28 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 50cc9d2a6e9d ("net/ice: fix max frame size") Signed-off-by: SteveX Yang --- drivers/net/ice/ice_ethdev.c | 11 +++ 1 file changed, 11 insertions(+) diff --gi

[dpdk-dev] [PATCH v4 4/5] net/i40e: fix max mtu size packets with vlan tag cannot be received by default

2020-09-28 Thread SteveX Yang
hould support dual vlan tags that need more 8 bytes for max packet size, so, configure the correct max packet size in dev_config ops. Fixes: ff8282f4bbcd ("net/i40e: consider QinQ when setting MTU") Signed-off-by: SteveX Yang --- drivers/net/i40e/i40e_ethdev.c| 11 +++ d

[dpdk-dev] [PATCH v4 1/5] net/e1000: fix max mtu size packets with vlan tag cannot be received by default

2020-09-28 Thread SteveX Yang
vlan tags that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Signed-off-by: SteveX Yang --- drivers/net/e1000/em_ethdev.c | 12 1 file changed, 12 insertions(+

[dpdk-dev] [PATCH v4 0/5] fix default max mtu size when device configured

2020-09-28 Thread SteveX Yang
t max packet size in dev_config ops. v4: * add the adjust condition for max_rx_pkt_len; v3: * change the i40evf relative code; v2: * change the max_rx_pkt_len via mtu_set ops; SteveX Yang (5): net/e1000: fix max mtu size packets with vlan tag cannot be received by default net/igc: fi

[dpdk-dev] [PATCH v4 2/5] net/igc: fix max mtu size packets with vlan tag cannot be received by default

2020-09-28 Thread SteveX Yang
n tag that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: a5aeb2b9e225 ("net/igc: support Rx and Tx") Signed-off-by: SteveX Yang --- drivers/net/igc/igc_ethdev.c | 13 - 1 file changed, 12 insertions(+), 1 deletion

[dpdk-dev] [PATCH v3 4/5] net/i40e: fix max mtu size packets with vlan tag cannot be received by default

2020-09-22 Thread SteveX Yang
hould support dual vlan tags that need more 8 bytes for max packet size, so, configure the correct max packet size in dev_config ops. Fixes: ff8282f4bbcd ("net/i40e: consider QinQ when setting MTU") Signed-off-by: SteveX Yang --- drivers/net/i40e/i40e_ethdev.c| 5 + d

[dpdk-dev] [PATCH v3 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-09-22 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 50cc9d2a6e9d ("net/ice: fix max frame size") Signed-off-by: SteveX Yang --- drivers/net/ice/ice_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/

[dpdk-dev] [PATCH v3 5/5] net/iavf: fix max mtu size packets with vlan tag cannot be received by default

2020-09-22 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 02d212ca3125 ("net/iavf: rename remaining avf strings") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff

[dpdk-dev] [PATCH v3 2/5] net/igc: fix max mtu size packets with vlan tag cannot be received by default

2020-09-22 Thread SteveX Yang
n tag that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: a5aeb2b9e225 ("net/igc: support Rx and Tx") Signed-off-by: SteveX Yang --- drivers/net/igc/igc_ethdev.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-

[dpdk-dev] [PATCH v3 1/5] net/e1000: fix max mtu size packets with vlan tag cannot be received by default

2020-09-22 Thread SteveX Yang
vlan tags that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Signed-off-by: SteveX Yang --- drivers/net/e1000/em_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff

[dpdk-dev] [PATCH v3 0/5] fix default max mtu size when device configured

2020-09-22 Thread SteveX Yang
t max packet size in dev_config ops. v3: * change the i40evf relative code; v2: * change the max_rx_pkt_len via mtu_set ops; SteveX Yang (5): net/e1000: fix max mtu size packets with vlan tag cannot be received by default net/igc: fix max mtu size packets with vlan tag cannot be receiv

[dpdk-dev] [PATCH v2 5/5] net/iavf: fix max mtu size packets with vlan tag cannot be received by default

2020-09-21 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 02d212ca3125 ("net/iavf: rename remaining avf strings") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff

[dpdk-dev] [PATCH v2 0/5] fix default max mtu size when device configured

2020-09-21 Thread SteveX Yang
t max packet size in dev_config ops. v2: * change the max_rx_pkt_len via mtu_set ops; SteveX Yang (5): net/e1000: fix max mtu size packets with vlan tag cannot be received by default net/igc: fix max mtu size packets with vlan tag cannot be received by default net/ice: fix max mtu

[dpdk-dev] [PATCH v2 2/5] net/igc: fix max mtu size packets with vlan tag cannot be received by default

2020-09-21 Thread SteveX Yang
n tag that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: a5aeb2b9e225 ("net/igc: support Rx and Tx") Signed-off-by: SteveX Yang --- drivers/net/igc/igc_ethdev.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-

[dpdk-dev] [PATCH v2 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-09-21 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 50cc9d2a6e9d ("net/ice: fix max frame size") Signed-off-by: SteveX Yang --- drivers/net/ice/ice_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/

[dpdk-dev] [PATCH v2 1/5] net/e1000: fix max mtu size packets with vlan tag cannot be received by default

2020-09-21 Thread SteveX Yang
vlan tags that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Signed-off-by: SteveX Yang --- drivers/net/e1000/em_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff

[dpdk-dev] [PATCH v2 4/5] net/i40e: fix max mtu size packets with vlan tag cannot be received by default

2020-09-21 Thread SteveX Yang
hould support dual vlan tags that need more 8 bytes for max packet size, so, configure the correct max packet size in dev_config ops. Fixes: ff8282f4bbcd ("net/i40e: consider QinQ when setting MTU") Signed-off-by: SteveX Yang --- drivers/net/i40e/i40e_ethdev.c| 5 + d

[dpdk-dev] [PATCH v1 5/5] net/i40e: fix max mtu size packets with vlan tag cannot be received by default

2020-09-15 Thread SteveX Yang
hould support dual vlan tags that need more 8 bytes for max packet size, so, configure the correct max packet size in dev_config ops. Fixes: ff8282f4bbcd ("net/i40e: consider QinQ when setting MTU") Signed-off-by: SteveX Yang --- drivers/net/i40e/i40e_ethdev.c| 10 ++ d

[dpdk-dev] [PATCH v1 0/5] fix default max mtu size when device configured

2020-09-15 Thread SteveX Yang
t max packet size in dev_config ops. SteveX Yang (5): net/e1000: fix max mtu size packets with vlan tag cannot be received by default net/igc: fix max mtu size packets with vlan tag cannot be received by default net/ice: fix max mtu size packets with vlan tag cannot be receiv

[dpdk-dev] [PATCH v1 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-09-15 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 50cc9d2a6e9d ("net/ice: fix max frame size") Signed-off-by: SteveX Yang --- drivers/net/ice/ice_ethdev.c | 14 -- 1 file changed, 12 insertions(+), 2 del

[dpdk-dev] [PATCH v1 4/5] net/iavf: fix max mtu size packets with vlan tag cannot be received by default

2020-09-15 Thread SteveX Yang
tags that need more 8 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 02d212ca3125 ("net/iavf: rename remaining avf strings") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 13 +++-- 1 file changed, 11 insertions(

[dpdk-dev] [PATCH v1 1/5] net/e1000: fix max mtu size packets with vlan tag cannot be received by default

2020-09-15 Thread SteveX Yang
vlan tags that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Signed-off-by: SteveX Yang --- drivers/net/e1000/em_ethdev.c | 11 +++ 1 file changed, 11 insertions(+

[dpdk-dev] [PATCH v1 2/5] net/igc: fix max mtu size packets with vlan tag cannot be received by default

2020-09-15 Thread SteveX Yang
n tag that need more 4 bytes for max packet size, so, configures the correct max packet size in dev_config ops. Fixes: a5aeb2b9e225 ("net/igc: support Rx and Tx") Signed-off-by: SteveX Yang --- drivers/net/igc/igc_ethdev.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/

[dpdk-dev] [PATCH v3] net/ixgbe: fix vf reset hw error handling

2020-09-14 Thread SteveX Yang
When start a VF with no initial MAC address assigned by the underlying Host PF driver, just reuse the MAC address assigned when VF is initializing. Fixes: f69166c9a3c9 ("net/ixgbe: fix reset error handling") Signed-off-by: SteveX Yang --- v3: * update commit and inline comment v2:

[dpdk-dev] [PATCH v3] app/test-pmd: fix meson build failed when enabled pmd_bonded

2020-09-14 Thread SteveX Yang
The depended pmd bond is missing for test-pmd. Add the pmd_bond to deps, and replace the relative MACRO name with new RTE_LIBRTE_BOND_PMD. Fixes: 2950a769315e ("bond: testpmd support") Signed-off-by: SteveX Yang --- v2->v3: * added fixline; v1->v2: * replaced the bond pmd MA

[dpdk-dev] [PATCH v2] app/test-pmd: fix meson build failed when used latency stats lib

2020-09-14 Thread SteveX Yang
meson.build of test-pmd, the corresponding header files will be included automatically. Fixes: 62d3216d6194 ("app/testpmd: add latency statistics calculation") Signed-off-by: SteveX Yang --- v2: removed long cflags and added 'latencystats' as a dependency of testpmd --- app/t

[dpdk-dev] [PATCH v2] app/test-pmd: fix meson build failed when enabled pmd_bonded

2020-09-10 Thread SteveX Yang
The depended pmd bond is missing for test-pmd. Add the pmd_bond to deps, and replace the relative MACRO name with new RTE_LIBRTE_BOND_PMD. Signed-off-by: SteveX Yang --- v1->v2: * replaced the bond pmd MACRO with the new one; * removed header paths cflags of bond pmd; --- app/test-

[dpdk-dev] [PATCH v1] app/test-pmd: fix meson build failed when used latency stats lib

2020-09-09 Thread SteveX Yang
ry to meson.build of test-pmd Signed-off-by: SteveX Yang --- app/test-pmd/meson.build | 4 1 file changed, 4 insertions(+) diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index db0ff02eb..6ee7af750 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -9,6 +9,10

[dpdk-dev] [PATCH v1] app/test-pmd: fix meson build failed when enabled pmd_bonded

2020-09-09 Thread SteveX Yang
ld of test-pmd Signed-off-by: SteveX Yang --- app/test-pmd/meson.build | 10 ++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index ea56e547b..db0ff02eb 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -4,6

[dpdk-dev] [PATCH v2] net/ixgbe: fix vf reset hw error handling

2020-09-07 Thread SteveX Yang
ixgbe: fix reset error handling") Signed-off-by: SteveX Yang --- v2: update comment. --- drivers/net/ixgbe/ixgbe_ethdev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index fd0cb9b0e..c2fa59c73 10

[dpdk-dev] [PATCH v3 2/6] net/iavf: fix incorrect link status when speed is undefined

2020-09-04 Thread SteveX Yang
and speed is different from undefined. Fixes: 48de41ca11f0 ("net/avf: enable link status update") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf

[dpdk-dev] [PATCH v3 4/6] net/iavf: fix setting of MAC address on iavf

2020-09-04 Thread SteveX Yang
a1cad2 ("net: add rte prefix to ether functions") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 349c82cae..f16aff531 100644 --- a/drivers/net/ia

[dpdk-dev] [PATCH v3 5/6] net/iavf: fix multiple interrupts for VF

2020-09-04 Thread SteveX Yang
Interrupt mapping should be 1:n queue(s).This patch fixes the logic of interrupt bind by code reconstruction. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 56 --- 1 file c

[dpdk-dev] [PATCH v3 3/6] net/iavf: fix port start during configuration restore

2020-09-04 Thread SteveX Yang
is done for .allmulticast_enable/disable dev_ops. Fixes: ca041cd44fcc ("ethdev: change allmulticast callbacks to return status") Fixes: 9039c8125730 ("ethdev: change promiscuous callbacks to return status") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 8

[dpdk-dev] [PATCH v3 6/6] net/iavf: downgrade error log

2020-09-04 Thread SteveX Yang
When receiving the unsupported AQ messages, it's taken as an error. It's not appropriate and triggers too much unnecessary print. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 2 +- 1 file changed, 1 inse

[dpdk-dev] [PATCH v3 0/6] Bugs Porting from I40evf For IAVF Feature

2020-09-04 Thread SteveX Yang
will be released in dev_close when RTE_ETH_DEV_CLOSE_REMOVE is set. SteveX Yang (6): net/iavf: fix scattered Rx enabling net/iavf: fix incorrect link status when speed is undefined net/iavf: fix port start during configuration restore net/iavf: fix setting of MAC address on iavf net

[dpdk-dev] [PATCH v3 1/6] net/iavf: fix scattered Rx enabling

2020-09-04 Thread SteveX Yang
No need to add additional vlan tag size for max packet size, the queue's Rx Max Frame Size (rxq->max_pkt_len) already includes the vlan header size in iavf. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethde

[dpdk-dev] [PATCH v2] net/i40e: i40evf exposes LSC flag to application

2020-09-03 Thread SteveX Yang
When PF event VIRTCHNL_EVENT_LINK_CHANGE received, i40evf need update the link status and issue RTE_ETH_EVENT_INTR_LSC via rte ether device callback function. Signed-off-by: SteveX Yang --- v2: - add RTE_PCI_DRV_INTR_LSC in drv_flags - configure the intr_conf.lsc according to

[dpdk-dev] [PATCH] net/ixgbe: fix vf reset hw error handling

2020-09-01 Thread SteveX Yang
t;net/ixgbe: fix reset error handling") Signed-off-by: SteveX Yang --- drivers/net/ixgbe/ixgbe_ethdev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index fd0cb9b0e..c2fa59c73 100644 --- a/d

[dpdk-dev] [PATCH v2 3/6] net/iavf: fix port start during configuration restore

2020-08-26 Thread SteveX Yang
is done for .allmulticast_enable/disable dev_ops. Fixes: ca041cd44fcc ("ethdev: change allmulticast callbacks to return status") Fixes: 9039c8125730 ("ethdev: change promiscuous callbacks to return status") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 8

[dpdk-dev] [PATCH v2 6/6] net/iavf: downgrade error log

2020-08-26 Thread SteveX Yang
When receiving the unsupported AQ messages, it's taken as an error. It's not appropriate and triggers too much unnecessary print. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 2 +- 1 file changed, 1 inse

[dpdk-dev] [PATCH v2 2/6] net/iavf: set speed to undefined for default case

2020-08-26 Thread SteveX Yang
d). To be consistent with linux drivers on which PF and VFs are in same carrier state, sets default speed to undefined (instead of 100M) and updates a link status of VF only if link is up and speed is different from undefined. Fixes: 48de41ca11f0 ("net/avf: enable link status update") Signed

[dpdk-dev] [PATCH v2 5/6] net/iavf: fix multiple interrupts for VF

2020-08-26 Thread SteveX Yang
Interrupt mapping should be 1:n queue(s).This patch fixes the logic of interrupt bind by code reconstruction. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 56 --- 1 file c

[dpdk-dev] [PATCH v2 4/6] net/iavf: fix setting of MAC address on iavf

2020-08-26 Thread SteveX Yang
a1cad2 ("net: add rte prefix to ether functions") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 349c82cae..f16aff531 100644 --- a/drivers/net/ia

[dpdk-dev] [PATCH v2 0/6] These patches are bugs porting from i40evf to

2020-08-26 Thread SteveX Yang
v2: removed patch (net/iavf: fix port close), because all resources will be released in dev_close when RTE_ETH_DEV_CLOSE_REMOVE is set. SteveX Yang (6): net/iavf: fix scattered Rx enabling net/iavf: set speed to undefined for default case net/iavf: fix port start during configuration

[dpdk-dev] [PATCH v2 1/6] net/iavf: fix scattered Rx enabling

2020-08-26 Thread SteveX Yang
No need to add additional vlan tag size for max packet size, since for i40e, the queue's Rx Max Frame Size (rxq->max_pkt_len) already includes the vlan header size. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_

[dpdk-dev] [PATCH v2 0/6] These patches are bugs porting from i40evf to

2020-08-26 Thread SteveX Yang
v2: removed patch (net/iavf: fix port close), because all resources will be released in dev_close when RTE_ETH_DEV_CLOSE_REMOVE is set. SteveX Yang (6): net/iavf: fix scattered Rx enabling net/iavf: set speed to undefined for default case net/iavf: fix port start during configuration

[dpdk-dev] [PATCH] net/i40e: i40evf exposes LSC flag to application.

2020-08-11 Thread SteveX Yang
When PF event VIRTCHNL_EVENT_LINK_CHANGE received, i40evf need update the link status and issue RTE_ETH_EVENT_INTR_LSC via _rte_eth_dev_callback_process(). Signed-off-by: SteveX Yang --- drivers/net/i40e/i40e_ethdev_vf.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a

[dpdk-dev] [PATCH] net/i40e: i40evf exposes LSC flag to application.

2020-08-11 Thread SteveX Yang
When PF event VIRTCHNL_EVENT_LINK_CHANGE recevied, i40evf need update the link status, and issue RTE_ETH_EVENT_INTR_LSC via _rte_eth_dev_callback_process(). Signed-off-by: SteveX Yang --- drivers/net/i40e/i40e_ethdev_vf.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH 5/7] net/iavf: fix multiple interrupts for VF

2020-08-11 Thread SteveX Yang
Interrupt mapping should be 1:n queue(s).This patch fixes the logic of interrupt bind by code reconstruction. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 56 --- 1 file c

[dpdk-dev] [PATCH 7/7] net/iavf: fix port close

2020-08-11 Thread SteveX Yang
tus of close. Fixes: 83fe5e80692a ("net/iavf: move device state flag") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iavf_ethdev.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/iavf.h in

[dpdk-dev] [PATCH 3/7] net/iavf: fix port start during configuration restore

2020-08-11 Thread SteveX Yang
is done for .allmulticast_enable/disable dev_ops. Fixes: ca041cd44fcc ("ethdev: change allmulticast callbacks to return status") Fixes: 9039c8125730 ("ethdev: change promiscuous callbacks to return status") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 8

[dpdk-dev] [PATCH 4/7] net/iavf: fix setting of MAC address on iavf

2020-08-11 Thread SteveX Yang
a1cad2 ("net: add rte prefix to ether functions") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 349c82cae..f16aff531 100644 --- a/drivers/net/ia

[dpdk-dev] [PATCH 6/7] net/iavf: downgrade error log

2020-08-11 Thread SteveX Yang
When receiving the unsupported AQ messages, it's taken as an error. It's not appropriate and triggers too much unnecessary print. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 2 +- 1 file changed, 1 inse

[dpdk-dev] [PATCH 2/7] net/iavf: set speed to undefined for default case

2020-08-11 Thread SteveX Yang
d). To be consistent with linux drivers on which PF and VFs are in same carrier state, sets default speed to undefined (instead of 100M) and updates a link status of VF only if link is up and speed is different from undefined. Fixes: 48de41ca11f0 ("net/avf: enable link status update") Signed

[dpdk-dev] [PATCH 1/7] net/iavf: fix scattered Rx enabling

2020-08-11 Thread SteveX Yang
No need to add additional vlan tag size for max packet size, since for i40e, the queue's Rx Max Frame Size (rxq->max_pkt_len) already includes the vlan header size. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_

[dpdk-dev] [PATCH 0/7] Bugs Porting from I40evf For IAVF Feature

2020-08-11 Thread SteveX Yang
These patches are bugs porting from i40evf to iavf. [PATCH 1/7] net/iavf: fix scattered Rx enabling [PATCH 2/7] net/iavf: set speed to undefined for default case [PATCH 3/7] net/iavf: fix port start during configuration restore [PATCH 4/7] net/iavf: fix setting of MAC address on iavf [PA

[dpdk-dev] [PATCH] net/iavf: release port upon close

2020-08-11 Thread SteveX Yang
Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources for the port can be freed by rte_eth_dev_close(). Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 43 -- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/drivers

[dpdk-dev] [DPDK] net/iavf: release port upon close

2020-08-11 Thread SteveX Yang
Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources for the port can be freed by rte_eth_dev_close(). Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 43 -- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH 6/7] net/iavf: downgrade error log

2020-08-10 Thread SteveX Yang
When receiving the unsupported AQ messages, it's taken as an error. It's not appropriate and triggers too much unnecessary print. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 2 +- 1 file changed, 1 inse

[dpdk-dev] [PATCH 7/7] net/iavf: fix port close

2020-08-10 Thread SteveX Yang
avf_dev_close() to control the status of close. Fixes: 83fe5e80692a ("net/iavf: move device state flag") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iavf_ethdev.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/net/iavf/ia

[dpdk-dev] [PATCH 5/7] net/iavf: fix multiple interrupts for VF

2020-08-10 Thread SteveX Yang
Interrupt mapping should be 1:n queue(s).This patch fixes the logic of interrupt bind by code reconstruction. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_vchnl.c | 56 --- 1 file c

[dpdk-dev] [PATCH 4/7] net/iavf: fix setting of MAC address on iavf

2020-08-10 Thread SteveX Yang
a1cad2 ("net: add rte prefix to ether functions") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 349c82cae..f16aff531 100644 --- a/drivers/net/ia

[dpdk-dev] [PATCH 3/7] net/iavf: fix port start during configuration restore

2020-08-10 Thread SteveX Yang
is done for .allmulticast_enable/disable dev_ops. Fixes: ca041cd44fcc ("ethdev: change allmulticast callbacks to return status") Fixes: 9039c8125730 ("ethdev: change promiscuous callbacks to return status") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_ethdev.c | 8

[dpdk-dev] [PATCH 0/7] Bugs Porting from I40evf For IAVF Feature

2020-08-10 Thread SteveX Yang
These patches are bugs porting from i40evf to iavf. [PATCH 1/7] net/iavf: fix scattered Rx enabling [PATCH 2/7] net/iavf: set speed to undefined for default case [PATCH 3/7] net/iavf: fix port start during configuration restore [PATCH 4/7] net/iavf: fix setting of MAC address on iavf [PA

[dpdk-dev] [PATCH 1/7] net/iavf: fix scattered Rx enabling

2020-08-10 Thread SteveX Yang
No need to add additional vlan tag size for max packet size, since for i40e, the queue's Rx Max Frame Size (rxq->max_pkt_len) already includes the vlan header size. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: SteveX Yang --- drivers/net/iavf/iavf_

[dpdk-dev] [PATCH 2/7] net/iavf: set speed to undefined for default case

2020-08-10 Thread SteveX Yang
d). To be consistent with linux drivers on which PF and VFs are in same carrier state, sets default speed to undefined (instead of 100M) and updates a link status of VF only if link is up and speed is different from undefined. Fixes: 48de41ca11f0 ("net/avf: enable link status update") Signed