Re: [ovs-dev] [ovs-dev v8 2/2] ipf: ipf_preprocess_conntrack should also consider ipf_ctx

2022-01-24 Thread Mike Pattrick
cket will enter into another ipf context and causes errors. > > This happends when there are multiple CT zones, and frags are > reassembled in ct(zone=X) might be 'stealed' into the ct(zone=Y). > > Signed-off-by: Peng He > --- After testing this a bit, it looks goo

Re: [ovs-dev] [[PATCH RFC] 06/17] dp-packet: Use p for packet and b for batch.

2022-01-24 Thread Mike Pattrick
On Tue, Dec 7, 2021 at 11:53 AM Flavio Leitner wrote: > > Currently 'p' and 'b' and used for packets, so use > a convention that struct dp_packet is 'p' and > struct dp_packet_batch is 'b'. > > Some comments needed new formatting to not pass the > 80 column. > > Some variables were using 'p' or

Re: [ovs-dev] [[PATCH RFC] 13/17] Enable IP checksum offloading by default.

2022-01-24 Thread Mike Pattrick
On Tue, Dec 7, 2021 at 11:54 AM Flavio Leitner wrote: > > The netdev receiving packets is supposed to provide the flags > indicating if the IP csum was verified and it is OK or BAD, > otherwise the stack will check when appropriate by software. > > If the packet comes with good checksum, then

[ovs-dev] [PATCH v1] tc: Add support for TCA_STATS_PKT64

2022-01-24 Thread Mike Pattrick
if the 32bit one has rolled over. This patch also changes the non-empty check to use bytes, in case the 32bit packet counter has rolled over for this update. Fixes: f98e418fbd ("tc: Add tc flower functions") Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1776816 Signed-off-by: Mik

[ovs-dev] [PATCH v2] tc: Add support for TCA_STATS_PKT64

2022-01-24 Thread Mike Pattrick
redhat.com/show_bug.cgi?id=1776816 Signed-off-by: Mike Pattrick --- lib/tc.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/tc.c b/lib/tc.c index 38a1dfc0e..c710e78e1 100644 --- a/lib/tc.c +++ b/lib/tc.c @@ -1702,6 +1702,11 @@ static const struct

Re: [ovs-dev] [PATCH] conntrack: Avoid sporadic failures during IPv6 HTTP/FTP tests

2022-01-25 Thread Mike Pattrick
e the sporadic failures after 100 iterations of "conntrack - FTP over IPv6", but I still think this fix makes sense, and shouldn't break anything. Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] conntrack: Check TCP state while testing established connections pick up.

2022-01-25 Thread Mike Pattrick
y break the TCP conn_update() in a way that it returns CT_UPDATE_VALID > without moving to the correct state leading to a false positive. > > Signed-off-by: Paolo Valerio > --- Looks good to me! Acked-by: Mike Pattrick ___ dev mailing list

[ovs-dev] [PATCH v1] conntrack: Fix FTP NAT when TCP but not IP offload is supported

2022-01-14 Thread Mike Pattrick
checksum if hwol is disabled or if DPDK will not handle the IP checksum. This fixes the conntrack - IPv4 FTP Passive with DNAT" test when run with check-system-tso. Reported-by: Flavio Leitner Signed-off-by: Mike Pattrick --- lib/conntrack.c | 3 ++- 1 file changed, 2 insertions(+), 1 del

Re: [ovs-dev] [PATCH v1] ofproto-dpif: Validate action size and recursion depth

2022-04-08 Thread Mike Pattrick
On Fri, Apr 8, 2022 at 6:35 AM Eelco Chaudron wrote: > > > > On 8 Apr 2022, at 11:18, Adrian Moreno wrote: > > > On 4/7/22 18:00, Mike Pattrick wrote: > >> On Thu, Apr 7, 2022 at 7:26 AM Adrian Moreno wrote: > >>> > >>> Hi Mike, > >

Re: [ovs-dev] [PATCH v1] ofproto-dpif: Validate action size and recursion depth

2022-04-07 Thread Mike Pattrick
On Thu, Apr 7, 2022 at 7:26 AM Adrian Moreno wrote: > > Hi Mike, > > On 4/6/22 18:48, Mike Pattrick wrote: > > Verify that a flow isn't adding more than 64kB in actions when an action > > uses multiple check_pkt_larger statements. Failure to do so can cause > >

[ovs-dev] [PATCH v1] ofproto-dpif: Validate action size and recursion depth

2022-04-06 Thread Mike Pattrick
Verify that a flow isn't adding more than 64kB in actions when an action uses multiple check_pkt_larger statements. Failure to do so can cause ovs-vswitchd to throw signal 6. Also add a depth check to clone and check_pkt_larger. Signed-off-by: Mike Pattrick --- ofproto/ofproto-dpif-xlate.c | 26

[ovs-dev] [PATCH v3] netdev-dpdk: Refactor the DPDK transmit path.

2022-04-08 Thread Mike Pattrick
have the side effect of leaving only the dpdk transmit code under the txq lock. Signed-off-by: Flavio Leitner Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- V2: - mentioned the tx lock change in the commit message. - fixed packet leak when copy fails. - moved pkt_cnt = cnt

[ovs-dev] [PATCH v7] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-08-31 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2213892 Signed-off-by: Mike Pattrick --- v2: Added additional checks if rule is removed v3: v2 patch was corrupted in transit v4: Added check against dpif flow stats v5: Fixed typos, updated commit message Changed timestamps to use datapath timestamp more

Re: [ovs-dev] [PATCH v7] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-09-01 Thread Mike Pattrick
On Fri, Sep 1, 2023 at 9:14 AM Ilya Maximets wrote: > > On 9/1/23 07:06, Mike Pattrick wrote: > > When the a revalidator thread is updating statistics for an XC_LEARN > > xcache entry in xlate_push_stats_entry it uses ofproto_flow_mod_learn. > > The revalidator will upd

[ovs-dev] [PATCH v8] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-09-01 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2213892 Signed-off-by: Mike Pattrick --- v2: Added additional checks if rule is removed v3: v2 patch was corrupted in transit v4: Added check against dpif flow stats v5: Fixed typos, updated commit message Changed timestamps to use datapath timestamp more

[ovs-dev] [PATCH v3] ofproto-dpif-mirror: Add support for pre-selection filter

2023-09-08 Thread Mike Pattrick
%|2%| netdev | 7.39 Gbps | 4.95 Gbps | 6.24 Gbps |33%| 15%| The ratios above are the percent reduction in total throughput when mirroring is used either with or without a filter. Signed-off-by: Mike Pattrick --- v3: - Added more tests - Refactored mirror wildcard modification

Re: [ovs-dev] [PATCH v2] ofproto-dpif-mirror: Add support for pre-selection filter

2023-08-29 Thread Mike Pattrick
On Fri, Aug 25, 2023 at 10:28 AM Adrian Moreno wrote: > > > > On 7/18/23 21:38, Mike Pattrick wrote: > > Currently a bridge mirror will collect all packets and tools like > > ovs-tcpdump can apply additional filters after they have already been > > duplicate

Re: [ovs-dev] [PATCH] tests: Add some tests for byteq module

2023-09-06 Thread Mike Pattrick
On Tue, Sep 5, 2023 at 8:04 AM James Raphael Tiovalen wrote: > > This commit adds a non-exhaustive list of tests for some of the > functions declared in `lib/byteq`. > > These unit tests have been executed via `make check` and they > successfully passed. > > Signed-off-by: James Raphael Tiovalen

Re: [ovs-dev] [PATCH v3] lib/hash: Add explicit typecasts to fix C++ compilation issues

2023-09-06 Thread Mike Pattrick
ow an error. On the latest GCC version with `-Wc++-compat`, > it would throw a warning. > > Signed-off-by: James Raphael Tiovalen Did a quick "make check" with ubsan on to test for regressions, looks good! Acked-by: Mike Pattrick __

Re: [ovs-dev] [PATCH] ovs-vsctl: Delay initialization of port variable in add_port_to_cache

2023-09-06 Thread Mike Pattrick
On Sun, Sep 3, 2023 at 7:44 AM James Raphael Tiovalen wrote: > > In commit 40546cd6e51a53048d320fc0ed6a99f1713f5335, the assignment for > the local `port` variable in the `add_port_to_cache` function was moved > earlier. This commit reverts the initialization back to after the call > to

Re: [ovs-dev] [PATCH v3 1/3] ofproto-dpif-upcall: Fix redundant mirror on geneve tunnel options.

2023-10-16 Thread Mike Pattrick
On Mon, Oct 16, 2023 at 4:08 AM Roi Dayan via dev wrote: > > > On 16/10/2023 11:00, Roi Dayan wrote: > > > > On 16/10/2023 10:42, Eelco Chaudron wrote: > >> > >> > >> On 16 Oct 2023, at 9:09, Roi Dayan wrote: > >> > >>> On 09/10/2023 15:05, Roi Dayan wrote: > The cited commit fixed missing

Re: [ovs-dev] [PATCH] editorconfig: Leave *.patch and *.diff files untouched.

2023-10-25 Thread Mike Pattrick
; > Acked-by: Eelco Chaudron > > It seems OK as well. But another safer option would have been to move > the trim_trailing_whitespace = true option in specific sections. Or > completely remove it since it will be caught by checkpatch. I think it

Re: [ovs-dev] [PATCH v5] userspace: Support vxlan and geneve tso.

2023-10-27 Thread Mike Pattrick
On Thu, Oct 26, 2023 at 3:40 AM Dexia Li via dev wrote: > > For userspace datapath, this patch provides vxlan and geneve tunnel tso. > Only support userspace vxlan or geneve tunnel, meanwhile support > tunnel outter and inner csum offload. If netdev do not support offload > features, there is

[ovs-dev] [PATCH v6 2/3] userspace: Respect tso/gso segment size.

2023-10-31 Thread Mike Pattrick
packets are dropped. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/dp-packet.c| 3 ++ lib/dp-packet.h| 26 lib/netdev-dpdk.c | 12 +++- lib/netdev-linux.c | 76 -- 4 files

[ovs-dev] [PATCH v6 1/3] netdev-linux: Use ethtool to detect offload support.

2023-10-31 Thread Mike Pattrick
Currently when userspace-tso is enabled, netdev-linux interfaces will indicate support for all offload flags regardless of interface configuration. This patch checks for which offload features are enabled during netdev construction. Signed-off-by: Mike Pattrick -- v6: - Removed legacy comment

[ovs-dev] [PATCH v6 3/3] userspace: Add Generic Segmentation Offloading.

2023-10-31 Thread Mike Pattrick
is sent in order to the netdev. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v4: - Various formatting changes - Fixed memory leak in soft-gso code if packet is flagged for GSO but incorrectly lacks segment size. v5: - Corrected indentation

Re: [ovs-dev] [PATCH v5] userspace: Support vxlan and geneve tso.

2023-11-01 Thread Mike Pattrick
On Sun, Oct 29, 2023 at 9:59 PM Dexia Li wrote: > > > > -邮件原件- > 发件人: Mike Pattrick > 发送时间: 2023年10月27日 23:04 > 收件人: Dexia Li > 抄送: ovs-dev@openvswitch.org > 主题: Re: [ovs-dev] [PATCH v5] userspace: Support vxlan and geneve tso. > > On Thu, Oct 26,

[ovs-dev] [PATCH v5 3/3] userspace: Add Generic Segmentation Offloading.

2023-10-30 Thread Mike Pattrick
is sent in order to the netdev. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/automake.mk | 2 + lib/dp-packet-gso.c | 168 lib/dp-packet-gso.h | 23 ++ lib/dp-packet.h | 7

[ovs-dev] [PATCH v5 2/3] userspace: Respect tso/gso segment size.

2023-10-30 Thread Mike Pattrick
packets are dropped. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/dp-packet.c| 3 ++ lib/dp-packet.h| 26 lib/netdev-dpdk.c | 12 +++- lib/netdev-linux.c | 76 -- 4 files

[ovs-dev] [PATCH v5 1/3] netdev-linux: Use ethtool to detect offload support.

2023-10-30 Thread Mike Pattrick
Currently when userspace-tso is enabled, netdev-linux interfaces will indicate support for all offload flags regardless of interface configuration. This patch checks for which offload features are enabled during netdev construction. Signed-off-by: Mike Pattrick --- lib/netdev-linux.c | 156

Re: [ovs-dev] [PATCH v5 1/3] netdev-linux: Use ethtool to detect offload support.

2023-10-31 Thread Mike Pattrick
On Mon, Oct 30, 2023 at 7:43 AM Simon Horman wrote: > > On Mon, Oct 30, 2023 at 02:58:36AM -0400, Mike Pattrick wrote: > > Currently when userspace-tso is enabled, netdev-linux interfaces will > > indicate support for all offload flags regardless of interface > > configur

Re: [ovs-dev] [PATCH v3] userspace: Support vxlan and geneve tso.

2023-10-18 Thread Mike Pattrick
On Wed, Oct 18, 2023 at 5:50 AM Dexia Li wrote: > > For userspace datapath, this patch provides vxlan and geneve tunnel tso. > Only support userspace vxlan or geneve tunnel, meanwhile support > tunnel outter and inner csum offload. If netdev do not support offload > features, there is a

Re: [ovs-dev] [PATCH v6 2/2] ofproto-dpif-mirror: Add support for pre-selection filter.

2023-10-17 Thread Mike Pattrick
On Fri, Oct 13, 2023 at 9:06 AM Ilya Maximets wrote: > > On 10/8/23 06:21, Mike Pattrick wrote: > > Currently a bridge mirror will collect all packets and tools like > > ovs-tcpdump can apply additional filters after they have already been > > duplicated by v

Re: [ovs-dev] [PATCH v3] bond: Always revalidate unbalanced bonds when active member changes

2023-10-18 Thread Mike Pattrick
On Fri, Oct 13, 2023 at 4:28 AM Eelco Chaudron wrote: > > > > On 8 Oct 2023, at 7:26, Mike Pattrick wrote: > > > Currently a bond will not always revalidate when an active member > > changes. This can result in counter-intuitive behaviors like the fact > > that

[ovs-dev] [PATCH v4] bond: Always revalidate unbalanced bonds when active member changes.

2023-10-18 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2214979 Signed-off-by: Mike Pattrick --- v2: Added a test v3: Made the test more reliable v4: Made test much more reliable --- ofproto/bond.c | 8 +-- tests/system-traffic.at | 50 + 2 files changed, 56 insertions(+), 2

Re: [ovs-dev] [PATCH v4] netdev-dpdk: Add vxlan and geneve tunnel tso.

2023-09-27 Thread Mike Pattrick
ld you provide the error message with intel 710 ? It's just the tx_error counter increasing. -M > > Best regards > Dexia > > -邮件原件- > 发件人: Mike Pattrick > 发送时间: 2023年9月27日 1:54 > 收件人: Dexia Li > 抄送: ovs-dev@openvswitch.org; i.maxim...@ovn.org; david.march...@

Re: [ovs-dev] [PATCH v3] ofproto-dpif-mirror: Add support for pre-selection filter

2023-10-03 Thread Mike Pattrick
On Mon, Oct 2, 2023 at 6:07 AM Simon Horman wrote: > > On Fri, Sep 08, 2023 at 12:28:24PM -0400, Mike Pattrick wrote: > > Currently a bridge mirror will collect all packets and tools like > > ovs-tcpdump can apply additional filters after they have already been > >

[ovs-dev] [PATCH v4 2/2] ofproto-dpif-mirror: Add support for pre-selection filter

2023-10-04 Thread Mike Pattrick
%|2%| netdev | 7.39 Gbps | 4.95 Gbps | 6.24 Gbps |33%| 15%| The ratios above are the percent reduction in total throughput when mirroring is used either with or without a filter. Signed-off-by: Mike Pattrick --- v3: - Added more tests - Refactored mirror wildcard

[ovs-dev] [PATCH v4 1/2] ofproto-dpif-mirror: Reduce number of function parameters

2023-10-04 Thread Mike Pattrick
Previously the mirror_set() and mirror_get() functions took a large number of parameters, which was inefficient and difficult to read and extend. This patch moves most of the parameters into a struct. Signed-off-by: Mike Pattrick --- ofproto/ofproto-dpif-mirror.c | 61

[ovs-dev] [PATCH v5 2/2] ofproto-dpif-mirror: Add support for pre-selection filter.

2023-10-04 Thread Mike Pattrick
%|2%| netdev | 7.39 Gbps | 4.95 Gbps | 6.24 Gbps |33%| 15%| The ratios above are the percent reduction in total throughput when mirroring is used either with or without a filter. Signed-off-by: Mike Pattrick --- v3: - Added more tests - Refactored mirror wildcard modification

[ovs-dev] [PATCH v5 1/2] ofproto-dpif-mirror: Reduce number of function parameters.

2023-10-04 Thread Mike Pattrick
Previously the mirror_set() and mirror_get() functions took a large number of parameters, which was inefficient and difficult to read and extend. This patch moves most of the parameters into a struct. Signed-off-by: Mike Pattrick --- ofproto/ofproto-dpif-mirror.c | 61

Re: [ovs-dev] [PATCH] netdev-dpdk: fix tso bug

2023-09-19 Thread Mike Pattrick
mpatibility for various > drivers. > Only setting RTE_MBUF_F_TX_TCP_SEG can support compatibility for various > drivers tso fuction. > > > > -邮件原件- > 发件人: Dexia Li > 发送时间: 2023年9月18日 17:47 > 收件人: David Marchand > 抄送: ovs-dev@openvswitch.org; i.maxim...@ov

Re: [ovs-dev] [PATCH v4] netdev-dpdk: Add vxlan and geneve tunnel tso.

2023-09-26 Thread Mike Pattrick
On Mon, Sep 25, 2023 at 9:19 PM Dexia Li wrote: > > For userspace datapath, this patch provides vxlan and geneve tunnel tso. > Only support userspace vxlan or geneve tunnel, meanwhile support > tunnel outter and inner csum offload. if netdev do not support offload > features, there is a software

Re: [ovs-dev] [PATCH v2] tests: Add some tests for byteq module

2023-09-26 Thread Mike Pattrick
: James Raphael Tiovalen Looks good! Acked-by: Mike Pattrick > --- > Revisions: > > v1 -> v2: Incorporate Mike's suggestions. > --- > tests/automake.mk | 1 + > tests/library.at | 5 ++ > tests/test-byteq.c | 143 + &

[ovs-dev] [PATCH v6 2/2] ofproto-dpif-mirror: Add support for pre-selection filter.

2023-10-07 Thread Mike Pattrick
%|2%| netdev | 7.39 Gbps | 4.95 Gbps | 6.24 Gbps |33%| 15%| The ratios above are the percent reduction in total throughput when mirroring is used either with or without a filter. Signed-off-by: Mike Pattrick --- v3: - Added more tests - Refactored mirror wildcard

[ovs-dev] [PATCH v6 1/2] ofproto-dpif-mirror: Reduce number of function parameters.

2023-10-07 Thread Mike Pattrick
Previously the mirror_set() and mirror_get() functions took a large number of parameters, which was inefficient and difficult to read and extend. This patch moves most of the parameters into a struct. Signed-off-by: Mike Pattrick Acked-by: Simon Horman Acked-by: Eelco Chaudron --- v6

[ovs-dev] [PATCH v3] bond: Always revalidate unbalanced bonds when active member changes

2023-10-07 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2214979 Signed-off-by: Mike Pattrick --- v2: Added a test v3: Made the test more reliable --- ofproto/bond.c | 8 +-- tests/system-traffic.at | 50 + 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/ofproto

Re: [ovs-dev] [PATCH v4] bond: Always revalidate unbalanced bonds when active member changes.

2023-10-19 Thread Mike Pattrick
On Thu, Oct 19, 2023 at 9:00 AM Eelco Chaudron wrote: > > > > On 19 Oct 2023, at 4:37, Mike Pattrick wrote: > > > Currently a bond will not always revalidate when an active member > > changes. This can result in counter-intuitive behaviors like the fact > > that

[ovs-dev] [PATCH v5] bond: Always revalidate unbalanced bonds when active member changes.

2023-10-19 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2214979 Signed-off-by: Mike Pattrick --- v2: Added a test v3: Made the test more reliable v4: Made test much more reliable v5: Improved test performance --- ofproto/bond.c | 8 +-- tests/system-traffic.at | 48 + 2 files

Re: [ovs-dev] [PATCH v5] tests: Add some tests for byteq module.

2023-10-11 Thread Mike Pattrick
nd warning. > v4 -> v5: Add Eelco's suggestions to rename the test names to not refer > to platform names. > --- Thanks for implementing the requested changes. Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] bond: Always revalidate unbalanced bonds when active member changes

2023-08-17 Thread Mike Pattrick
On Wed, Aug 16, 2023 at 4:18 PM Ilya Maximets wrote: > > On 8/9/23 19:00, Mike Pattrick wrote: > > Currently a bond will not always revalidate when an active member > > changes. This can result in counter-intuitive behaviors like the fact > > that using ovs-appct

[ovs-dev] [PATCH v2] bond: Always revalidate unbalanced bonds when active member changes

2023-08-17 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2214979 Signed-off-by: Mike Pattrick --- v2: Added a test --- ofproto/bond.c | 8 +-- tests/system-traffic.at | 50 + 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/ofproto/bond.c b/ofproto/bond.c index

Re: [ovs-dev] [PATCH v4] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-08-21 Thread Mike Pattrick
On Mon, Aug 21, 2023 at 7:15 AM Ilya Maximets wrote: > > On 8/18/23 00:46, Mike Pattrick wrote: > > When the a revalidator thread is updating statistics for an XC_LEARN > > xcache entry in xlate_push_stats_entry it uses ofproto_flow_mod_learn. > > The revalidator will upd

[ovs-dev] [PATCH v4] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-08-17 Thread Mike Pattrick
. If force is set to false and the rule has been replaced in the classifier with a more recent rule, then ofproto_flow_mod_learn will just return. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2213892 Signed-off-by: Mike Pattrick --- v2: Added additional checks if rule is removed v3: v2

Re: [ovs-dev] [PATCH v2] lacp: Improve visibility with LACP

2023-08-16 Thread Mike Pattrick
On Fri, Aug 11, 2023 at 6:56 PM Ilya Maximets wrote: > > On 8/4/23 19:58, Mike Pattrick wrote: > > Diagnosing connectivity issues involving a bond can be complicated by a > > lack of logging in LACP. It is difficult to determine the health of > > sending and receving LACP

Re: [ovs-dev] [PATCH v5] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-08-28 Thread Mike Pattrick
On Mon, Aug 28, 2023 at 4:19 AM Ilya Maximets wrote: > > On 8/25/23 08:12, Mike Pattrick wrote: > > On Thu, Aug 24, 2023 at 6:01 PM Ilya Maximets wrote: > >> > >> On 8/22/23 22:45, Mike Pattrick wrote: > >>> When the a revalidator thread is updating sta

[ovs-dev] [PATCH v6] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-08-28 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2213892 Signed-off-by: Mike Pattrick --- v2: Added additional checks if rule is removed v3: v2 patch was corrupted in transit v4: Added check against dpif flow stats v5: Fixed typos, updated commit message Changed timestamps to use datapath timestamp more

Re: [ovs-dev] [PATCH] netdev-dpdk: Clear IP packet type when no offload is requested.

2023-08-22 Thread Mike Pattrick
net/iavf. But to be on the safe > side, this OVS patch here is a proposal to avoid hitting bugs in some > other drivers, > I didn't test this thoroughly. But the documentation says that these flags are only required if checksum/TSO is requested. Acked-by: Mike Pattrick ___

[ovs-dev] [PATCH v5] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-08-22 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2213892 Signed-off-by: Mike Pattrick --- v2: Added additional checks if rule is removed v3: v2 patch was corrupted in transit v4: Added check against dpif flow stats v5: Fixed typos, updated commit message Changed timestamps to use datapath timestamp more

Re: [ovs-dev] [PATCH v5] ofproto-dpif-xlate: Don't reinstall removed XC_LEARN rule

2023-08-25 Thread Mike Pattrick
On Thu, Aug 24, 2023 at 6:01 PM Ilya Maximets wrote: > > On 8/22/23 22:45, Mike Pattrick wrote: > > When the a revalidator thread is updating statistics for an XC_LEARN > > xcache entry in xlate_push_stats_entry it uses ofproto_flow_mod_learn. > > The revalidator will upd

Re: [ovs-dev] [PATCH 4/5] system-offloads-traffic: Properly initialize offload before testing.

2022-04-25 Thread Mike Pattrick
On Mon, Mar 28, 2022 at 7:12 AM Eelco Chaudron wrote: > > This patch will properly initialize offload, as it requires the > setting to be enabled before starting ovs-vswitchd (or do a > restart once configured). > > Signed-off-by: Eelco Chaudron > --- > tests/ofproto-macros.at |6

Re: [ovs-dev] [PATCH 3/5] netdev-offload-tc: Handle check_pkt_len datapath action.

2022-04-25 Thread Mike Pattrick
On Mon, Mar 28, 2022 at 7:11 AM Eelco Chaudron wrote: > > This change implements support for the check_pkt_len > action using the TC police action, which supports MTU > checking. > > Signed-off-by: Eelco Chaudron Looks good! Acked

Re: [ovs-dev] [PATCH] system-traffic: Fix fragment reassembly with L3 L4 protocol information.

2022-04-25 Thread Mike Pattrick
gger the same behavior. > > Signed-off-by: Paolo Valerio This fixes the broken test for me. Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v4] bond: Improve bond and lacp visibility

2022-06-21 Thread Mike Pattrick
capitalization and periods - Summarized info level hash transfers - Added log if bond members were significantly deviant Signed-off-by: Mike Pattrick --- lib/lacp.c | 28 +++--- ofproto/bond.c | 102 +++-- 2 files changed, 95 insertions(+), 35

Re: [ovs-dev] [PATCH v4 13/14] userspace: Add Generic Segmentation Offloading.

2022-07-07 Thread Mike Pattrick
On Thu, Jul 7, 2022 at 7:03 AM David Marchand wrote: > > Hello Mike, > > > I did not review carefully yet. > Just two quick comments. > > > On Fri, Jul 1, 2022 at 5:58 AM Mike Pattrick wrote: > > > > From: Flavio Leitner > > > > This provides a

[ovs-dev] [PATCH v4 04/14] dp-packet: Use p for packet and b for batch.

2022-06-30 Thread Mike Pattrick
be no functional change with this patch. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin -- v2: Corrected missing conversion in packet.c --- lib/dp-packet.c| 345 +++ lib/dp-packet.h| 504

[ovs-dev] [PATCH v4 10/14] userspace: Enable IP checksum offloading by default.

2022-06-30 Thread Mike Pattrick
the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/conntrack.c | 12 ++--- lib/dp-packet.c | 12 + lib/dp-packet.h | 70 + lib/dpif.h

[ovs-dev] [PATCH v4 11/14] userspace: Enable L4 csum offloading by default.

2022-06-30 Thread Mike Pattrick
this patch enables the feature. However, Linux socket interface remains disabled because the API doesn't allow enabling those those features without enabling TSO too. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/conntrack.c | 16

[ovs-dev] [PATCH v4 13/14] userspace: Add Generic Segmentation Offloading.

2022-06-30 Thread Mike Pattrick
enough memory and finally do the work. Finally each batch is sent in order to the netdev. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/automake.mk | 2 + lib/dp-packet-gso.c | 172 lib/dp

[ovs-dev] [PATCH v4 01/14] dp-packet: Rename flags with CKSUM to CSUM.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner It seems csum is more common and shorter. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand -- v2: changed title per suggestion --- lib/dp-packet.h | 72

[ovs-dev] [PATCH v4 02/14] netdev: Prefix offload flags with NETDEV_OFFLOAD_

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Use the 'NETDEV_OFFLOAD_' prefix in the flags to indicate we are talking about hardware offloading capabilities. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed-by: David Marchand Acked-by: Maxime Coquelin --- lib

[ovs-dev] [PATCH v4 07/14] dp-packet: Add _ol_ to functions using OL flags.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner This helps to identify when it is about the flags or the packet itself. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand --- lib/conntrack.c | 8 lib/dp

[ovs-dev] [PATCH v4 03/14] dp-packet: Rename dp_packet_hwol to dp_packet_ol.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner The name correlates better with the flag names. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand -- v2: changed title per suggestion --- lib/conntrack.c| 8 lib

[ovs-dev] [PATCH v4 05/14] dp-packet: Rename dp_packet_ol_tcp_seg

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Rename to dp_packet_ol_tcp_seg, because that is less redundant and allows other protocols. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin --- lib/dp-packet.h| 2 +- lib/netdev-linux.c | 2 +- lib

[ovs-dev] [PATCH v4 08/14] Documentation: Document netdev offload.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Document the implementation of netdev hardware offloading in userspace datapath. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- Documentation/automake.mk | 1 + Documentation/topics/index.rst| 1

[ovs-dev] [PATCH v4 09/14] dpif-netdev: Show netdev offloading flags.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Add a new command to show the offloading features of each data path port. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/dpif-netdev-unixctl.man | 5 lib/dpif-netdev.c | 58

[ovs-dev] [PATCH v4 06/14] dp-packet: Rename dp_packet_ol l4 functions.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Rename to better represent their flags. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand --- lib/conntrack.c| 4 ++-- lib/dp-packet.h| 14 +++--- lib/ipf.c

[ovs-dev] [PATCH v4 12/14] userspace: Respect tso/gso segment size.

2022-06-30 Thread Mike Pattrick
packets are dropped. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/dp-packet.c| 1 + lib/dp-packet.h| 26 +++ lib/netdev-dpdk.c | 13 ++-- lib/netdev-linux.c | 83 ++ 4 files

[ovs-dev] [PATCH v4 14/14] userspace: Enable TSO if available.

2022-06-30 Thread Mike Pattrick
is not desired for some deployment. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- Documentation/topics/userspace-tso.rst | 21 ++-- NEWS | 4 + lib/netdev-linux.c | 133 - lib

[ovs-dev] [PATCH v5] bond: Improve bond and lacp visibility

2022-06-22 Thread Mike Pattrick
, we now suppress these messages at the INFO level and display exact byte count at the debug level. Signed-off-by: Mike Pattrick -- Since v4: - Removed prefixes - Removed unrequired conditional Since v3: - Removed log if bond members were significantly deviant - Normalized log prefixes

Re: [ovs-dev] [PATCH 1/14] Rename flags with CKSUM to CSUM

2022-07-12 Thread Mike Pattrick
On Thu, Jul 7, 2022 at 5:53 AM Amber, Kumar wrote: > > Hi Flavio, Mike, > > > > I did have a quick look over the patch-set > https://patchwork.ozlabs.org/project/openvswitch/list/?series=307485 > > > > I have some comments over the patches mentioned below: > > 1. Can a Cover letter

Re: [ovs-dev] [PATCH v2] python: use setuptools instead of distutils

2022-07-11 Thread Mike Pattrick
ad. > > setuptools < 59.0 doesn't have setuptools.errors and so, in this case, > distutils.errors is still used. > > Signed-off-by: Timothy Redaelli LGTM! Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.

[ovs-dev] [PATCH v3 01/14] dp-packet: Rename flags with CKSUM to CSUM.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner It seems csum is more common and shorter. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand -- v2: changed title per suggestion --- lib/dp-packet.h | 72

[ovs-dev] [PATCH v3 04/14] dp-packet: Use p for packet and b for batch.

2022-06-30 Thread Mike Pattrick
be no functional change with this patch. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin -- v2: Corrected missing conversion in packet.c --- lib/dp-packet.c| 345 +++ lib/dp-packet.h| 504

[ovs-dev] [PATCH v3 08/14] Documentation: Document netdev offload.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Document the implementation of netdev hardware offloading in userspace datapath. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- Documentation/automake.mk | 1 + Documentation/topics/index.rst| 1

[ovs-dev] [PATCH v3 03/14] dp-packet: Rename dp_packet_hwol to dp_packet_ol.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner The name correlates better with the flag names. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand -- v2: changed title per suggestion --- lib/conntrack.c| 8 lib

[ovs-dev] [PATCH v3 05/14] dp-packet: Rename dp_packet_ol_tcp_seg

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Rename to dp_packet_ol_tcp_seg, because that is less redundant and allows other protocols. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin --- lib/dp-packet.h| 2 +- lib/netdev-linux.c | 2 +- lib

[ovs-dev] [PATCH v3 02/14] netdev: Prefix offload flags with NETDEV_OFFLOAD_

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Use the 'NETDEV_OFFLOAD_' prefix in the flags to indicate we are talking about hardware offloading capabilities. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed-by: David Marchand Acked-by: Maxime Coquelin --- lib

[ovs-dev] [PATCH v3 10/14] userspace: Enable IP checksum offloading by default.

2022-06-30 Thread Mike Pattrick
the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/conntrack.c | 12 ++--- lib/dp-packet.c | 12 + lib/dp-packet.h | 70 + lib/dpif.h

[ovs-dev] [PATCH v3 12/14] userspace: Respect tso/gso segment size.

2022-06-30 Thread Mike Pattrick
packets are dropped. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/dp-packet.c| 1 + lib/dp-packet.h| 26 +++ lib/netdev-dpdk.c | 13 ++-- lib/netdev-linux.c | 83 ++ 4 files

[ovs-dev] [PATCH v3 07/14] dp-packet: Add _ol_ to functions using OL flags.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner This helps to identify when it is about the flags or the packet itself. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand --- lib/conntrack.c | 8 lib/dp

[ovs-dev] [PATCH v3 06/14] dp-packet: Rename dp_packet_ol l4 functions.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Rename to better represent their flags. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Acked-by: Maxime Coquelin Reviewed-by: David Marchand --- lib/conntrack.c| 4 ++-- lib/dp-packet.h| 14 +++--- lib/ipf.c

[ovs-dev] [PATCH v3 14/14] userspace: Enable TSO if available.

2022-06-30 Thread Mike Pattrick
is not desired for some deployment. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- Documentation/topics/userspace-tso.rst | 21 ++-- NEWS | 4 + lib/netdev-linux.c | 133 - lib

[ovs-dev] [PATCH v3 11/14] userspace: Enable L4 csum offloading by default.

2022-06-30 Thread Mike Pattrick
this patch enables the feature. However, Linux socket interface remains disabled because the API doesn't allow enabling those those features without enabling TSO too. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/conntrack.c | 16

[ovs-dev] [PATCH v3 13/14] userspace: Add Generic Segmentation Offloading.

2022-06-30 Thread Mike Pattrick
enough memory and finally do the work. Finally each batch is sent in order to the netdev. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/automake.mk | 2 + lib/dp-packet-gso.c | 172 lib/dp

[ovs-dev] [PATCH v3 09/14] dpif-netdev: Show netdev offloading flags.

2022-06-30 Thread Mike Pattrick
From: Flavio Leitner Add a new command to show the offloading features of each data path port. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/dpif-netdev-unixctl.man | 5 lib/dpif-netdev.c | 58

Re: [ovs-dev] [PATCH v4 10/14] userspace: Enable IP checksum offloading by default.

2022-07-06 Thread Mike Pattrick
On Wed, Jul 6, 2022 at 9:02 AM David Marchand wrote: > > On Mon, Jul 4, 2022 at 10:24 PM David Marchand > wrote: > > > diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c > > > index 57f94df54..164738503 100644 > > > --- a/ofproto/ofproto-dpif-upcall.c > > > +++

Re: [ovs-dev] [PATCH] ovs-tcpdump: Fix error when stopping ovs-tcpdump.

2022-06-03 Thread Mike Pattrick
on: Unable to delete Mirror m_br-int > > Signed-off-by: Han Ding I can confirm that this issue does occur, and this patch fixes it. Acked-by: Mike Pattrick Small nit but instead of closing and reopening the OVSDB object, maybe we should just atexit.register the call to ovsdb.close_idl. Ch

[ovs-dev] [PATCH 4/7] dp-packet: Use p for packet and b for batch.

2022-06-03 Thread Mike Pattrick
be no functional change with this patch. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/dp-packet.c| 345 +++ lib/dp-packet.h| 504 ++--- lib/netdev-dummy.c | 8 +- lib/netdev

[ovs-dev] [PATCH 0/7] dp-packet: Refactor offload related names

2022-06-03 Thread Mike Pattrick
This patch refactors several function, variable, and definition names for consistency and brevity. cksum is changed to csum, p is the default name for a dp_packet, b is the default name for a dp_packet_batch, ol instead of hwol, and some checksum offload related functions are renamed to indicate

<    1   2   3   4   5   6   7   8   >