Re: [ovs-dev] [PATCH v1] ovs-ctl: Allow inclusion of hugepages in coredumps

2022-12-02 Thread Mike Pattrick
On Fri, Dec 2, 2022 at 11:59 AM Ilya Maximets wrote: > > On 12/2/22 11:36, Maxime Coquelin wrote: > > > > > > On 12/2/22 11:09, David Marchand wrote: > >> On Wed, Nov 30, 2022 at 9:30 PM Ilya Maximets wrote: > >>> Shouldn't this be 0x7f instead? > >>> 0x3f doesn't enable bit #6, which is

Re: [ovs-dev] [PATCH v1] ovs-ctl: Allow inclusion of hugepages in coredumps

2022-12-02 Thread Mike Pattrick
On Fri, Dec 2, 2022 at 10:20 AM Maxime Coquelin wrote: > > > > On 12/2/22 15:59, Mike Pattrick wrote: > > On Fri, Dec 2, 2022 at 5:37 AM Maxime Coquelin > > wrote: > >> > >> > >> > >> On 12/2/22 11:09, David Marchand wrote

Re: [ovs-dev] [PATCH v1] ovs-ctl: Allow inclusion of hugepages in coredumps

2022-12-02 Thread Mike Pattrick
On Fri, Dec 2, 2022 at 5:37 AM Maxime Coquelin wrote: > > > > On 12/2/22 11:09, David Marchand wrote: > > On Wed, Nov 30, 2022 at 9:30 PM Ilya Maximets wrote: > >> Shouldn't this be 0x7f instead? > >> 0x3f doesn't enable bit #6, which is responsible for dumping > >> shared huge

Re: [ovs-dev] [PATCH v1] ovs-ctl: Allow inclusion of hugepages in coredumps

2022-11-30 Thread Mike Pattrick
On Wed, Nov 30, 2022 at 7:27 AM Ilya Maximets wrote: > > On 11/25/22 18:19, Adrian Moreno wrote: > > Hi Mike, > > > > Sorry it took that long to review this patch. > > > > On 3/25/22 23:17, Mike Pattrick wrote: > >> Add new option --dump-hugep

Re: [ovs-dev] [PATCH] netdev: Assume default link speed to be 10 Gbps instead of 100 Mbps.

2022-11-29 Thread Mike Pattrick
ink this is a reasonable change, 100MB has mostly been relegated to embedded devices for a long time. Acked-by: Mike Pattrick Slightly related, I noticed that we're missing support for 20 and 56Gbps, we should probably add those as well. -M > --- > NEWS | 4 &

[ovs-dev] [PATCH v9 4/4] userspace: Enable L4 checksum offloading by default.

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

[ovs-dev] [PATCH v9 3/4] userspace: Enable IP checksum offloading by default.

2022-11-23 Thread Mike Pattrick
offload alone, so the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- lib/conntrack.c | 17 +++--- lib/dp-packet.c | 15 ++ lib/dp-packet.h | 60

[ovs-dev] [PATCH v9 2/4] dpif-netdev: Show netdev offloading flags.

2022-11-23 Thread Mike Pattrick
From: Flavio Leitner This patch introduces a command to display the current checksum offload status by port, allowing the user to gain insight into where checksum offloading is active. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed-by: David

[ovs-dev] [PATCH v9 0/4] Enhance support for checksum offloading

2022-11-23 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksum improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. In a simple iperf test

[ovs-dev] [PATCH v9 1/4] Documentation: Document netdev offload.

2022-11-23 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 Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- Documentation/automake.mk| 1 + Documentation

Re: [ovs-dev] [PATCH v1 06/11] python: support case-insensitive OpenFlow actions

2022-11-23 Thread Mike Pattrick
On Wed, Nov 23, 2022 at 5:03 AM Adrian Moreno wrote: > I believe the commit message was cut out. > Signed-off-by: Adrian Moreno > --- > python/ovs/flow/kv.py| 17 ++--- > python/ovs/flow/ofp.py | 7 --- > python/ovs/tests/test_ofp.py | 15 +++ > 3

Re: [ovs-dev] [PATCH v1 02/11] python: include aliases in ofp_fields.py

2022-11-23 Thread Mike Pattrick
aliases > so it's easy to map OXM/NXM names to their fields and decoding > information. > > Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick > --- > build-aux/gen_ofp_field_decoders | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/bu

Re: [ovs-dev] [PATCH] vswitchd: Publish per iface received multicast packets.

2022-11-14 Thread Mike Pattrick
On Wed, Nov 9, 2022 at 3:32 PM David Marchand wrote: > > The count of received multicast packets has been computed internally, > but not exposed to ovsdb. Fix this. > > Signed-off-by: David Marchand Acked-by: Mike Pattrick > --- > Strictly speaking, nothing was broken s

Re: [ovs-dev] dpif-netdev: fix flow allocation size

2022-11-08 Thread Mike Pattrick
On Fri, Nov 4, 2022 at 2:46 AM Peng He wrote: > > The tail of the struct dp_netdev_flow contains a whole netdev_flow_key > struct. > > We need to first minus the size of netdev_flow_key then add back > the real size of this netdev_flow_key. > > Signed-off-by: Peng He > --- > lib/dpif-netdev.c |

Re: [ovs-dev] [PATCH 8/8] python: don't exit OFPFlow constructor

2022-11-07 Thread Mike Pattrick
should be done by the caller anyway. > > Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 7/8] python: return list of actions for odp action clone

2022-11-07 Thread Mike Pattrick
that already takes that into account from ofp_act.py to > kv.py and use it for datapath action "clone". > > Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 6/8] tests: verify flows in odp.at are parseable

2022-11-07 Thread Mike Pattrick
On Mon, Oct 17, 2022 at 9:19 AM Adrian Moreno wrote: > > Create a small helper script and check that flows tested in odp.at are > parseable. > > Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick ___ dev mailing list d...@openvs

Re: [ovs-dev] [PATCH 5/8] tests: verify flows in ofp-actions are parseable

2022-11-07 Thread Mike Pattrick
On Mon, Oct 17, 2022 at 9:19 AM Adrian Moreno wrote: > > Create a small helper script and check that flows used in ofp-actions.at > are parseable. > > Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick ___ dev mailing list d...@

Re: [ovs-dev] [PATCH 4/8] python: make key-value matching strict by default

2022-11-07 Thread Mike Pattrick
ed. Also, if a KVDecoder does > need this default behavior, it can be explicitly configured specifying > it's default decoder. > > Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick > ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 3/8] python: add explicit decoders for all ofp actions

2022-11-07 Thread Mike Pattrick
e_output, > "drop": decode_flag, > "controller": decode_controller, > +"CONTROLLER": decode_controller, This is beyond the scope of this patch, but I was surprised to see that format_CONTROLLER in ofp-actions.c

Re: [ovs-dev] [PATCH 1/8] python: fix datapath flow decoders

2022-11-07 Thread Mike Pattrick
On Mon, Oct 17, 2022 at 9:18 AM Adrian Moreno wrote: > > Fix the following erros in odp decoding: > - Missing push_mpls action > - Typos in collector_set_id, tp_src/tp_dst and csum > - Missing two fields in vxlan match > > Signed-off-by: Adrian Moreno Ac

Re: [ovs-dev] [PATCH v3] ovs-thread: Detect changes in number of cpus

2022-11-07 Thread Mike Pattrick
ec. > > Fixes: be15ec48d766 ("lib: Use a more accurate value for CPU count > (sched_getaffinity).") > Cc: david.march...@redhat.com > Signed-off-by: Adrian Moreno Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] ovs-thread: Detect changes in number of cpus

2022-11-04 Thread Mike Pattrick
On Fri, Nov 4, 2022 at 11:45 AM Adrian Moreno wrote: > > Currently, things like the number of handler and revalidator threads are > calculated based on the number of available CPUs. However, this number > is considered static and only calculated once, hence ignoring events > such as cpus being

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

2022-11-01 Thread Mike Pattrick
% | 7.39 Gbps | Signed-off-by: Mike Pattrick --- Documentation/ref/ovs-tcpdump.8.rst | 4 +++ NEWS| 2 ++ lib/flow.h | 11 ++ ofproto/ofproto-dpif-mirror.c | 53 +++-- ofproto/ofproto-dpif-mirror.h

Re: [ovs-dev] [PATCH v2] ovs-thread: Detect changes in number of cpus

2022-10-27 Thread Mike Pattrick
On Thu, Oct 27, 2022 at 6:00 AM Adrian Moreno wrote: > > > > On 10/26/22 18:41, Adrian Moreno wrote: > > > > > > On 10/21/22 18:57, Mike Pattrick wrote: > >> On Fri, Sep 30, 2022 at 11:31 AM Adrian Moreno wrote: > >>> > >>> Curre

Re: [ovs-dev] [PATCH] tests: Fix filtering of whole-second durations.

2022-10-24 Thread Mike Pattrick
te_in_count:600 duration:6s > bands: > > Fix sed matches to correctly handle that scenario. > Repeating the [0-9\.] twice because it is hard to write a shorter > portable version with sed. > > Signed-off-by: Ilya Maximets Acked-by: Mike Pattrick __

Re: [ovs-dev] [PATCH 2/8] python: include aliases in ofp_fields.py

2022-10-24 Thread Mike Pattrick
On Mon, Oct 17, 2022 at 9:18 AM Adrian Moreno wrote: > > We currently auto-generate a dictionary of field names and decoders. > However, sometimes fields can be specified by their cannonical NXM or > OXM names. > > Modify gen_ofp_field_decoders to also generate a dictionary of aliases > so it's

Re: [ovs-dev] [PATCH v2] ovs-thread: Detect changes in number of cpus

2022-10-21 Thread Mike Pattrick
On Fri, Sep 30, 2022 at 11:31 AM Adrian Moreno wrote: > > Currently, things like the number of handler and revalidator threads are > calculated based on the number of available CPUs. However, this number > is considered static and only calculated once, hence ignoring events > such as cpus being

[ovs-dev] [PATCH v8 3/4] userspace: Enable IP checksum offloading by default.

2022-10-20 Thread Mike Pattrick
the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- lib/conntrack.c | 17 --- lib/dp-packet.c | 15 ++ lib/dp-packet.h | 60

[ovs-dev] [PATCH v8 1/4] Documentation: Document netdev offload.

2022-10-20 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 Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- Documentation/automake.mk| 1 + Documentation

[ovs-dev] [PATCH v8 4/4] userspace: Enable L4 csum offloading by default.

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

[ovs-dev] [PATCH v8 2/4] dpif-netdev: Show netdev offloading flags.

2022-10-20 Thread Mike Pattrick
From: Flavio Leitner This patch introduces a command to display the current checksum offload status by port, allowing the user to gain insight into where checksum offloading is active. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed-by: David

[ovs-dev] [PATCH v8 0/4] Enhance support for checksum offloading

2022-10-20 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksumming improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. Flavio Leitner

[ovs-dev] [PATCH] ofproto-dpif-xlate: Reduce stack usage in do_xlate_actions

2022-10-20 Thread Mike Pattrick
it currently uses 720 bytes, this patch reduces that to 288. In my testing of a resubmit loop, this patch increases the number of recursions possible before a segfault by over 20%. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2104779 Signed-off-by: Mike Pattrick --- include/openvswitch

[ovs-dev] [PATCH v7 3/4] userspace: Enable IP checksum offloading by default.

2022-10-19 Thread Mike Pattrick
the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- lib/conntrack.c | 17 --- lib/dp-packet.c | 15 ++ lib/dp-packet.h | 60

[ovs-dev] [PATCH v7 4/4] userspace: Enable L4 csum offloading by default.

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

[ovs-dev] [PATCH v7 0/4] Enhance support for checksum offloading

2022-10-19 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksumming improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. Flavio Leitner

[ovs-dev] [PATCH v7 2/4] dpif-netdev: Add command to show netdev offloading flags.

2022-10-19 Thread Mike Pattrick
From: Flavio Leitner This patch introduces a command to display the current checksum offload status by port, allowing the user to gain insight into where checksum offloading is active. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed

[ovs-dev] [PATCH v7 1/4] Documentation: Document netdev offload.

2022-10-19 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 Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- Documentation/automake.mk| 1 + Documentation

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Mike Pattrick
On Wed, Oct 19, 2022 at 12:27 PM Ilya Maximets wrote: > > On 10/19/22 15:48, Mike Pattrick wrote: > > On Wed, Oct 19, 2022 at 9:30 AM Flavio Leitner wrote: > >> > >> > >> Hi Mike, > >> > >> Thanks for the patch. > >> > >

Re: [ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Mike Pattrick
n stack usage. > > BTW, I think we use Reported-at: tag instead of Bugzilla:. You're right! I don't know where I came up with that tag. -M > > > fbl > > On Wed, Oct 19, 2022 at 09:01:46AM -0400, Mike Pattrick wrote: > > Previously the minimum thread stack size was

[ovs-dev] [RFC PATCH] lib/ovs-thread: Expand stack when more memory is available.

2022-10-19 Thread Mike Pattrick
here is to set a minimum of 4MB on systems with more than 4GB of total ram. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2104779 Signed-off-by: Mike Pattrick --- lib/ovs-thread.c | 46 -- lib/ovs-thread.h | 1 + 2 files changed, 45 insertions

Re: [ovs-dev] [PATCH 1/2] netdev-offload: Expose error when init_flow_api() returns EBUSY.

2022-10-07 Thread Mike Pattrick
application won't notice it. This patch expose the error to the OVSDB > record, and reverts the dpif port changes upon failure. > > Signed-off-by: Han Zhou This seems reasonable to me. Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitc

Re: [ovs-dev] [PATCH v3] netdev-dpdk: fix tx_dropped counters value

2022-10-06 Thread Mike Pattrick
the DPDK transmit path.") > Signed-off-by: Robin Jarry Looks good to me. Acked-by: Mike Pattrick > --- > > Notes: > v2 -> v3: fixed double count of tx_failure_drops > > lib/netdev-dpdk.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >

Re: [ovs-dev] [PATCH v2] sparse: Add a guard for netinet/ip6.h header on FreeBSD.

2022-10-06 Thread Mike Pattrick
om sys/types.h to netinet/in.h since > struct ip6_addr is defined there. Fixed one instance where > this is not respected at the moment. > Looks reasonable to me. Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Print more data on unassociated datapath ports.

2022-09-29 Thread Mike Pattrick
errorp ? " (" : "", errorp ? errorp : "", > + errorp ? ")" : ""); Wouldn't it just be easier to wrap the whole VLOG_INFO_RL() in an if statement than have this piecewise string format construction? I guess th

[ovs-dev] [PATCH] vconn: Allow ECONNREFUSED in refuse connection test

2022-09-27 Thread Mike Pattrick
expected 0 530. vconn.at:21: 530. tcp vconn - refuse connection (vconn.at:21): FAILED (vconn.at:21) This was observed from a CI system, and isn't a common case. Signed-off-by: Mike Pattrick --- tests/test-vconn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-vconn.c b/tests/te

Re: [ovs-dev] [PATCH v2 2/2] bond: Avoid deadlock while updating post recirculation rules.

2022-09-15 Thread Mike Pattrick
test is added to catch the double lock case. > > Reported-at: https://github.com/openvswitch/ovs-issues/issues/259 > Reported-by: Daniel Ding > Fixes: adcf00ba35a0 ("ofproto/bond: Implement bond megaflow using > recirculation") > Signed-off-by: Ilya Maximets > --- Ne

Re: [ovs-dev] [PATCH v2 1/2] ofproto-dpif-upcall: Add debug commands to pause/resume revalidators.

2022-09-15 Thread Mike Pattrick
a Maximets > --- Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v2] netdev-dpdk: Drop TSO in case of conflicting virtio features.

2022-09-14 Thread Mike Pattrick
On Tue, Sep 13, 2022 at 5:21 AM David Marchand wrote: > > At some point in OVS history, some virtio features were announced as > supported (ECN and UFO virtio features). > > The userspace TSO code, which has been added later, does not support > those features and tries to disable them. > > This

Re: [ovs-dev] [PATCH v2] ovs-tcpdump: Cleanup mirror port on SIGHUP/SIGTERM

2022-08-31 Thread Mike Pattrick
reated is True: > -_del_taps[sys.platform](mirror_interface) > except Exception: > print("Unable to tear down the ports and mirrors.") > print("Please use ovs-vsctl to remove the ports and mirrors > created.") Nit: This

Re: [ovs-dev] [PATCH v2] netdev-dpdk: fix tx_dropped counters value

2022-08-31 Thread Mike Pattrick
On Wed, Aug 3, 2022 at 4:58 AM Robin Jarry wrote: > > Packets that could not be transmitted because the TXQ are full should be > taken into account in the global ovs_tx_failure_drops as it was the case > before commit 29b94e12d57d ("netdev-dpdk: Refactor the DPDK transmit > path."). > > Also, the

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

2022-08-30 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 v5: - Implemented reverse xmas tree - Adjusted spacing and wrapping - Corrected info log units Since v4: - Removed prefixes - Removed unrequired

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

2022-08-30 Thread Mike Pattrick
On Tue, Aug 30, 2022 at 8:52 AM Ilya Maximets wrote: > > On 6/22/22 16:28, Mike Pattrick wrote: > > Add additional logging for debug and info level with a focus on code > > related to bond members coming up, go down, and changing. > > > > Several existing log messag

Re: [ovs-dev] [PATCH] bond: Avoid deadlock while updating post recirculation rules.

2022-08-22 Thread Mike Pattrick
but it might be possible to trigger the self-lockup > issue on the main thread. I'll try to work on the test while > waiting for review. > Hello Ilya, I've tested this and confirmed that it solves the problem for me. Acked-by: Mike Pattrick I created a reproducer that doesn't require

Re: [ovs-dev] [ovs-dev v2 2/4] ofproto-dpif-upcall: fix race condition

2022-08-22 Thread Mike Pattrick
only because specific state machine we are using there. > > transition_ukey should be as simple as possible, not related to any specific > state machine used. > > > Mike Pattrick 于2022年8月16日 周二22:05写道: >> >> On Tue, Aug 16, 2022 at 4:04 AM Peng He wrote: >>

[ovs-dev] [PATCH net-next v2 2/2] openvswitch: Fix overreporting of drops in dropwatch

2022-08-17 Thread Mike Pattrick
instead and allow caller's to use kfree_skb. Signed-off-by: Mike Pattrick Link: https://bugzilla.redhat.com/show_bug.cgi?id=2109957 --- Changes in v2: - Corrected bugzilla link --- net/openvswitch/datapath.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/openvswitch

[ovs-dev] [PATCH net-next v2 1/2] openvswitch: Fix double reporting of drops in dropwatch

2022-08-17 Thread Mike Pattrick
Frames sent to userspace can be reported as dropped in ovs_dp_process_packet, however, if they are dropped in the netlink code then netlink_attachskb will report the same frame as dropped. This patch checks for error codes which indicate that the frame has already been freed. Signed-off-by: Mike

Re: [ovs-dev] [ovs-dev v2 2/4] ofproto-dpif-upcall: fix race condition

2022-08-16 Thread Mike Pattrick
n; +} VLOG_ABORT("Invalid ukey transition %d->%d (last transitioned from " "thread %u at %s)", ukey->state, dst, ukey->state_thread, ukey->state_where); > > Mike Pattrick 于2022年8月15日周一 20:16写道: >> &

Re: [ovs-dev] [ovs-dev v2 2/4] ofproto-dpif-upcall: fix race condition

2022-08-15 Thread Mike Pattrick
On Sat, Jun 4, 2022 at 11:19 AM Peng He wrote: > > There is a race condition between the revalidator threads and > the handler/pmd threads. > > revalidator PMD threads > push_dp_ops deletes a key and tries > to del the dp magaflow. >

Re: [ovs-dev] [PATCH] python: Fix E275 missing whitespace after keyword.

2022-08-04 Thread Mike Pattrick
we're installing extra dependencies > that backtrack flake8 down to 4.1 or even 3.9. > > Signed-off-by: Ilya Maximets Looks good to me! Acked-by: Mike Pattrick > --- > python/setup.py | 4 ++-- > tests/test-ovsdb.py | 2 +- > utilities/bugtool/ovs

Re: [ovs-dev] [PATCH v1] ovs-save: Use right OpenFlow version for add-tlv-map

2022-08-03 Thread Mike Pattrick
On Fri, Jul 1, 2022 at 6:53 AM Han Ding wrote: > > > When the bridge protocols is not included Openflow10, printing an error > message "version negotiation failed" when doing "Restoring saved flows". > > Signed-off-by: Han Ding Looks good to me! Acked-by:

Re: [ovs-dev] [PATCH] dpif-netlink: Fix incorrect bit shift in compat mode.

2022-08-03 Thread Mike Pattrick
86_64-linux-gnu/libc.so.6+0x29e3f) > #14 0x562594eed024 in _start (vswitchd/ovs-vswitchd+0x787024) > > Fixes: 526df7d8543f ("tunnel: Provide framework for tunnel extensions for > VXLAN-GBP and others") > Signed-off-by: Ilya Maximets Acked-by: Mike Pattrick > --- >

Re: [ovs-dev] [PATCH] system-offloads-traffic: Fix waiting for netcat indefinitely.

2022-08-03 Thread Mike Pattrick
On Wed, Aug 3, 2022 at 11:12 AM Ilya Maximets wrote: > > On 8/3/22 16:58, Mike Pattrick wrote: > > On Thu, Jul 28, 2022 at 2:27 PM Ilya Maximets wrote: > >> > >> $NC_EOF_OPT should be used to avoid some netcat implementations > >> to wait indefinitely.

Re: [ovs-dev] [PATCH] system-offloads-traffic: Fix waiting for netcat indefinitely.

2022-08-03 Thread Mike Pattrick
meter to tc police action") > Signed-off-by: Ilya Maximets Should we also add these flags to the other system tests? Acked-by: Mike Pattrick > --- > tests/system-offloads-traffic.at | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tests/syst

[ovs-dev] [PATCH net-next 2/2] openvswitch: Fix overreporting of drops in dropwatch

2022-07-28 Thread Mike Pattrick
Signed-off-by: Mike Pattrick --- net/openvswitch/datapath.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 029f9c3e1c28..3eee4b0a2005 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c

[ovs-dev] [PATCH net-next 1/2] openvswitch: Fix double reporting of drops in dropwatch

2022-07-28 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2109946 Signed-off-by: Mike Pattrick --- net/openvswitch/datapath.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 7e8a39a35627..029f9c3e1c28 100644 --- a/net

Re: [ovs-dev] [PATCH] python-c-ext: Handle initialization failures.

2022-07-27 Thread Mike Pattrick
e may > fail, most of the examples in python documentation include > handling of a NULL case. > > Signed-off-by: Ilya Maximets Looks good to me! Acked-by: Mike Pattrick > --- > python/ovs/_json.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --

Re: [ovs-dev] [PATCH v1] lacp: modify the comment misspelling

2022-07-27 Thread Mike Pattrick
On Thu, Jun 23, 2022 at 6:32 AM yangchang wrote: > > change 'negotations' to 'negotiations' > > Signed-off-by: yangchang Good catch! Acked-by: Mike Pattrick > --- > lib/lacp.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/lacp.h b

Re: [ovs-dev] [PATCH v3 1/1] packets: Re-calculate IPv6 checksum only for first frag upon modify.

2022-07-13 Thread Mike Pattrick
ding a new flag to recalculate the checksum only for last frag. Should be "only for the first frag." Acked-by: Mike Pattrick . > > Fixes: bc7a5acdff08 ("datapath: add ipv6 'set' action") > Signed-off-by: Salem Sol > --- > lib/packets.c

[ovs-dev] [PATCH v6 4/4] userspace: Enable L4 csum offloading by default.

2022-07-13 Thread Mike Pattrick
this patch enables the feature. However, Linux socket interface remains disabled because the API doesn't allow enabling those two features without enabling TSO too. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Added David's proposed

[ovs-dev] [PATCH v6 3/4] userspace: Enable IP checksum offloading by default.

2022-07-13 Thread Mike Pattrick
the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Refactor was mostly removed, except for valid->good - Reset unsupported offload flags in send_prepare - Moved send_prepare from process_upcall to netdev_upcall

[ovs-dev] [PATCH v6 2/4] dpif-netdev: Show netdev offloading flags.

2022-07-13 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 Reviewed-by: David Marchand --- lib/dpif-netdev-unixctl.man | 6 lib/dpif-netdev.c | 58

[ovs-dev] [PATCH v6 1/4] Documentation: Document netdev offload.

2022-07-13 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 v6 0/4] Enhance support for checksum offloading

2022-07-13 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksumming improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. Flavio Leitner

Re: [ovs-dev] [PATCH v5 3/4] userspace: Enable IP checksum offloading by default.

2022-07-13 Thread Mike Pattrick
It looks like one of the test files fell out of this patch, I'll re-submit with that corrected. -M On Wed, Jul 13, 2022 at 2:14 PM Mike Pattrick wrote: > > From: Flavio Leitner > > The netdev receiving packets is supposed to provide the flags > indicating if the IP cs

[ovs-dev] [PATCH v5 4/4] userspace: Enable L4 csum offloading by default.

2022-07-13 Thread Mike Pattrick
this patch enables the feature. However, Linux socket interface remains disabled because the API doesn't allow enabling those two features without enabling TSO too. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Added David's proposed

[ovs-dev] [PATCH v5 2/4] dpif-netdev: Show netdev offloading flags.

2022-07-13 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 Reviewed-by: David Marchand --- lib/dpif-netdev-unixctl.man | 6 lib/dpif-netdev.c | 58

[ovs-dev] [PATCH v5 3/4] userspace: Enable IP checksum offloading by default.

2022-07-13 Thread Mike Pattrick
the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Refactor was mostly removed, except for valid->good - Reset unsupported offload flags in send_prepare - Moved send_prepare from process_upcall to netdev_upc

[ovs-dev] [PATCH v5 1/4] Documentation: Document netdev offload.

2022-07-13 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 v5 0/4] Enhance support for checksum offloading

2022-07-13 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksumming improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. Flavio Leitner

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.

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

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 > > > +++

[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 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 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 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 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 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 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 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 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 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 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 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

<    1   2   3   4   5   6   7   >