[ovs-dev] [PATCH] IPv6: Add IPv6 extension header support

2022-11-18 Thread Toms Atteka
/actions/runs/504185214 Signed-off-by: Toms Atteka --- build-aux/extract-odp-netlink-macros-h | 1 + include/linux/openvswitch.h| 6 + include/openvswitch/flow.h | 8 +- include/openvswitch/match.h| 2 + include/openvswitch/meta-flow.h| 18

[ovs-dev] [PATCHv2] bfd: Add IPv6 address support to BFD packets

2022-08-02 Thread Toms Atteka
Added config options for source and destination IPv6 addresses to BFD packets. IPv6 address presence overrides IPv4 address and packets are crafted as IPv6. Added IP address values to status to ease setting up IP addresses. Signed-off-by: Toms Atteka --- lib/bfd.c| 119

[ovs-dev] [PATCH] bfd: Add IPv6 address support to BFD packets

2022-08-02 Thread Toms Atteka
Added config options for source and destination IPv6 addresses to BFD packets. IPv6 address presence overrides IPv4 address and packets are crafted as IPv6. Added IP address values to status to ease setting up IP addresses. Signed-off-by: Toms Atteka --- lib/bfd.c| 119

[ovs-dev] [PATCHv2] IPv6: Add IPv6 extension header support

2022-03-18 Thread Toms Atteka
: https://github.com/TomCodeLV/ovs/actions/runs/504185214 Signed-off-by: Toms Atteka --- build-aux/extract-odp-netlink-macros-h| 1 + build-aux/extract-ofp-fields | 4 +- datapath/flow.c | 192 +++--- datapath/flow.h

[ovs-dev] [PATCH] IPv6: Add IPv6 extension header support

2022-03-18 Thread Toms Atteka
From: Toms Atteka IPv6 extension headers carry optional internet layer information and are placed between the fixed header and the upper-layer protocol header. This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and packets can be filtered using ipv6_ext flag. Some spacing style

[ovs-dev] [PATCH net-next v8] net: openvswitch: IPv6: Add IPv6 extension header support

2022-02-23 Thread Toms Atteka
This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and packets can be filtered using ipv6_ext flag. Signed-off-by: Toms Atteka Acked-by: Pravin B Shelar --- include/uapi/linux/openvswitch.h | 6 ++ net/openvswitch/flow.c | 140 +++ net

[ovs-dev] [PATCH net-next v8] net: openvswitch: IPv6: Add IPv6 extension header support

2021-11-24 Thread Toms Atteka
This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and packets can be filtered using ipv6_ext flag. Signed-off-by: Toms Atteka --- include/uapi/linux/openvswitch.h | 6 ++ net/openvswitch/flow.c | 140 +++ net/openvswitch/flow.h | 14

[ovs-dev] [PATCH net-next v8] net: openvswitch: IPv6: Add IPv6 extension header support

2021-10-29 Thread Toms Atteka
This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and packets can be filtered using ipv6_ext flag. Signed-off-by: Toms Atteka --- include/uapi/linux/openvswitch.h | 6 ++ net/openvswitch/flow.c | 140 +++ net/openvswitch/flow.h | 14

[ovs-dev] [PATCH net-next v7] net: openvswitch: IPv6: Add IPv6 extension header support

2021-10-14 Thread Toms Atteka
This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and packets can be filtered using ipv6_ext flag. Signed-off-by: Toms Atteka --- include/uapi/linux/openvswitch.h | 16 +++- net/openvswitch/flow.c | 140 +++ net/openvswitch/flow.h

[ovs-dev] [PATCH net-next v6] net: openvswitch: IPv6: Add IPv6 extension header support

2021-09-28 Thread Toms Atteka
This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and packets can be filtered using ipv6_ext flag. Signed-off-by: Toms Atteka --- include/uapi/linux/openvswitch.h | 12 +++ net/openvswitch/flow.c | 140 +++ net/openvswitch/flow.h | 14

[ovs-dev] [PATCH net-next v5] net: openvswitch: IPv6: Add IPv6 extension header support

2021-09-20 Thread Toms Atteka
This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and packets can be filtered using ipv6_ext flag. Signed-off-by: Toms Atteka --- include/uapi/linux/openvswitch.h | 12 +++ net/openvswitch/flow.c | 140 +++ net/openvswitch/flow.h | 14

[ovs-dev] [PATCH v4] netlink: removed incorrect optimization

2021-06-07 Thread Toms Atteka
slate Geneve options per-flow, not per-packet.") Reported-at: https://github.com/vmware-tanzu/antrea/issues/897 Signed-off-by: Toms Atteka --- lib/tun-metadata.c | 2 +- tests/system-traffic.at | 54 + 2 files changed, 55 insertions(+), 1 deletion(-)

[ovs-dev] [PATCH v3] netlink: removed incorrect optimization

2021-06-03 Thread Toms Atteka
Signed-off-by: Toms Atteka --- lib/tun-metadata.c | 2 +- tests/system-traffic.at | 54 + 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/lib/tun-metadata.c b/lib/tun-metadata.c index c0b0ae044..af0bcbde8 100644 --- a/lib/tun-metadata.c

[ovs-dev] [PATCH v2] netlink: removed incorrect optimization

2021-06-02 Thread Toms Atteka
Signed-off-by: Toms Atteka --- lib/tun-metadata.c | 2 +- tests/system-traffic.at | 54 + 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/lib/tun-metadata.c b/lib/tun-metadata.c index c0b0ae044..828db72f5 100644 --- a/lib/tun-metadata.c

[ovs-dev] [PATCHv2] netdev-afxdp: updated documentation

2020-12-07 Thread Toms Atteka
If system is missing ethtool, test fails silently. Signed-off-by: Toms Atteka --- Documentation/intro/install/afxdp.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/intro/install/afxdp.rst b/Documentation/intro/install/afxdp.rst index 3c8f78825..f4b7cc4f9 100644 --- a

[ovs-dev] [PATCH] netdev-afxdp: updated documentation

2020-12-02 Thread Toms Atteka
If system is missing ethtool, test fails silently. Signed-off-by: Toms Atteka --- Documentation/intro/install/afxdp.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/intro/install/afxdp.rst b/Documentation/intro/install/afxdp.rst index 3c8f78825..a597658e2

[ovs-dev] [PATCH] netlink: removed incorrect optimization

2020-11-20 Thread Toms Atteka
This optimization caused FLOW_TNL_F_UDPIF flag not to be used in hash calculation for geneve tunnel when revalidating flows which resulted in different cache hash values and incorrect behaviour. Reported-at: https://github.com/vmware-tanzu/antrea/issues/897 Signed-off-by: Toms Atteka --- lib

[ovs-dev] [PATCHv2] python: fixed package dependency

2020-07-22 Thread Toms Atteka
Python3 does not have python3-twisted-web. Required codebase is inside python3-twisted. Signed-off-by: Toms Atteka --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 0646b22a1..6420b9d3e 100644 --- a/debian/control +++ b

[ovs-dev] [PATCH] python: fixed package dependency

2020-07-22 Thread Toms Atteka
From: Toms Atteka Python3 does not have python3-twisted-web. Required codebase is inside python3-twisted. Signed-off-by: Toms Atteka --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 0646b22a1..6420b9d3e 100644 --- a

[ovs-dev] [PATCHv2] odp-util: extend usage of limit for parse functions

2019-05-09 Thread Toms Atteka
This fixes stack overflow issues for odp_actions_from_string. Added wrapper functions for recursion limitation. Basic manual testing was performed. Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13808 Signed-off-by: Toms Atteka v1->v2: added wrapper functions --- lib/

[ovs-dev] [PATCH] odp-util: extend usage of limit for parse functions

2019-05-08 Thread Toms Atteka
: Toms Atteka --- lib/odp-util.c | 89 -- 1 file changed, 65 insertions(+), 24 deletions(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 1b2347d6f..fc85c6123 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -90,7 +90,7 @@ static void

[ovs-dev] [PATCH] oss-fuzz: fixed wrong lib path

2019-04-30 Thread Toms Atteka
the logical-fields.h file was moved. Path has been updated accordingly. This broke oss-fuzz buils. Signed-off-by: Toms Atteka --- tests/oss-fuzz/expr_parse_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/oss-fuzz/expr_parse_target.c b/tests/oss-fuzz

[ovs-dev] [PATCHv2] lib: added check to prevent int overflow

2019-03-20 Thread Toms Atteka
Signed-off-by: Toms Atteka v1->v2: added over sized check as a separate function and added checks for other parse functions where they might fail. --- include/openvswitch/ofpbuf.h | 6 ++ lib/bundle.c | 5 + lib/learn.c | 5 + lib/ofp-action

[ovs-dev] [PATCH] odp-util: added NULL check for error pointer argument

2019-03-18 Thread Toms Atteka
If NULL value was provided for odp_flow_from_string errorp argument segmentation fault error occurred. This patch fixes it by ignoring error formatting if error pointer is not provided. Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12972 Signed-off-by: Toms Atteka --- lib

[ovs-dev] [PATCH] lib: added check to prevent int overflow

2019-03-12 Thread Toms Atteka
If enough large input is given ofpact_finish will fail. Check was added and error message returned. Basic manual testing performed. Reported-by: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12972 Signed-off-by: Toms Atteka --- lib/learn.c | 5 + 1 file changed, 5 insertions

[ovs-dev] [PATCHv3] netlink: added check to prevent netlink attribute overflow

2019-02-19 Thread Toms Atteka
/issues/detail?id=12231 Signed-off-by: Toms Atteka --- lib/odp-util.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/odp-util.c b/lib/odp-util.c index e893f46..e288ae8 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -2161,6 +2161,10 @@ parse_action_list(const char *s, const struct

[ovs-dev] [PATCHv2] netlink: added check to prevent netlink attribute overflow

2019-02-19 Thread Toms Atteka
returning appropriate error code. Basic manual testing was performed. Reported-by: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12231 Signed-off-by: Toms Atteka --- lib/odp-util.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/odp-util.c b/lib/odp-util.c index e893f46

[ovs-dev] [PATCH] netlink: added check to prevent netlink attribute overflow

2019-02-11 Thread Toms Atteka
returning appropriate error code. Basic manual testing was performed. Reported-by: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12231 Signed-off-by: Toms Atteka --- lib/netlink.c | 1 + lib/odp-util.c | 4 2 files changed, 5 insertions(+) diff --git a/lib/netlink.c b/lib/netlink.c

[ovs-dev] [PATCH] ofpbuf: fixed a bug in ofpbuf_insert

2019-01-18 Thread Toms Atteka
memmove byte count was calculated incorrectly as ofpbuf_put_uninit is increasing b->size by n. This patch fixes it by deducing byte count by n. Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12296 Signed-off-by: Toms Atteka --- lib/ofpbuf.c | 4 ++-- 1 file changed

[ovs-dev] [PATCH] python: add OVSDB IDL tutorial with examples

2018-07-09 Thread Toms Atteka
created tutorial on how to use OVSDB IDL Python library Signed-off-by: Toms Atteka --- Documentation/automake.mk| 1 + Documentation/index.rst | 1 + Documentation/tutorials/index.rst| 1 + Documentation/tutorials/ovsdb-idl-python.rst

[ovs-dev] [PATCH 2/2] python: add OVSDB IDL tutorial with examples

2018-07-09 Thread Toms Atteka
created tutorial on how to use OVSDB IDL Python library Signed-off-by: Toms Atteka --- Documentation/automake.mk| 1 + Documentation/tutorials/ovsdb-idl-python.rst | 284 +++ 2 files changed, 285 insertions(+) create mode 100644 Documentation

[ovs-dev] [PATCH] python: add IDL examples

2018-06-17 Thread Toms Atteka
created sample python scripts, which helps to learn how to use OVSDB library Signed-off-by: Toms Atteka --- python/howto/IDL/delete_bridges.py | 70 + python/howto/IDL/insert_bridge.py | 75 +++ python/howto/IDL/ovs_monitor.py| 102

[ovs-dev] [PATCH] python:updated docstring

2018-06-04 Thread Toms Atteka
Adjusted docstring and variable names according to previous code changes; Fixed grammar "a attribute" > "an attribute". Fixes: bf42f674 (idl: Convert python daemons to utilize SchemaHelper) Signed-off-by: Toms Atteka --- python/ovs/db/idl.py | 23