Re: [PATCH iproute2/net-next] tc: flower: Add support for ct_state reply flag

2021-02-04 Thread David Ahern
On 2/2/21 5:24 AM, Paul Blakey wrote: > Matches on conntrack rpl ct_state. > > Example: > $ tc filter add dev ens1f0_0 ingress prio 1 chain 1 proto ip flower \ > ct_state +trk+est+rpl \ > action mirred egress redirect dev ens1f0_1 > $ tc filter add dev ens1f0_1 ingress prio 1 chain 1 proto ip

Re: [PATCH iproute2/net-next] tc: flower: Add support for ct_state reply flag

2021-02-02 Thread Paul Blakey
On Tue, 2 Feb 2021, Marcelo Ricardo Leitner wrote: > On Tue, Feb 02, 2021 at 02:24:42PM +0200, Paul Blakey wrote: > > Matches on conntrack rpl ct_state. > > > > Example: > > $ tc filter add dev ens1f0_0 ingress prio 1 chain 1 proto ip flower \ > > ct_state +trk+est+rpl \ > > action mirred

Re: [PATCH iproute2/net-next] tc: flower: Add support for ct_state reply flag

2021-02-02 Thread Marcelo Ricardo Leitner
On Tue, Feb 02, 2021 at 02:24:42PM +0200, Paul Blakey wrote: > Matches on conntrack rpl ct_state. > > Example: > $ tc filter add dev ens1f0_0 ingress prio 1 chain 1 proto ip flower \ > ct_state +trk+est+rpl \ > action mirred egress redirect dev ens1f0_1 > $ tc filter add dev ens1f0_1 ingress p

[PATCH iproute2/net-next] tc: flower: Add support for ct_state reply flag

2021-02-02 Thread Paul Blakey
Matches on conntrack rpl ct_state. Example: $ tc filter add dev ens1f0_0 ingress prio 1 chain 1 proto ip flower \ ct_state +trk+est+rpl \ action mirred egress redirect dev ens1f0_1 $ tc filter add dev ens1f0_1 ingress prio 1 chain 1 proto ip flower \ ct_state +trk+est-rpl \ action mirred e

[patch iproute2/net-next RFCv2] devlink: add support for linecard show and provision

2021-01-22 Thread Jiri Pirko
From: Jiri Pirko Signed-off-by: Jiri Pirko --- devlink/devlink.c | 206 +- 1 file changed, 202 insertions(+), 4 deletions(-) diff --git a/devlink/devlink.c b/devlink/devlink.c index a2e066441e8a..63502a419d80 100644 --- a/devlink/devlink.c +++ b/devl

[patch iproute2/net-next RFC] devlink: add support for linecard show and provision

2021-01-13 Thread Jiri Pirko
From: Jiri Pirko Signed-off-by: Jiri Pirko --- devlink/devlink.c | 218 +- 1 file changed, 214 insertions(+), 4 deletions(-) diff --git a/devlink/devlink.c b/devlink/devlink.c index a2e066441e8a..960f1078591e 100644 --- a/devlink/devlink.c +++ b/devl

Re: [patch iproute2/net-next RFC] devlink: add support for linecard show and provision

2021-01-13 Thread Jiri Pirko
Please ignore this, I messed up the threading. Reposted.

[patch iproute2/net-next RFC] devlink: add support for linecard show and provision

2021-01-13 Thread Jiri Pirko
From: Jiri Pirko Signed-off-by: Jiri Pirko --- devlink/devlink.c | 218 +- 1 file changed, 214 insertions(+), 4 deletions(-) diff --git a/devlink/devlink.c b/devlink/devlink.c index a2e066441e8a..960f1078591e 100644 --- a/devlink/devlink.c +++ b/devl

Re: [PATCH iproute2 net-next v2] iplink: add support for protodown reason

2020-09-06 Thread Roopa Prabhu
On 9/1/20 6:54 PM, David Ahern wrote: On 8/28/20 9:42 PM, Roopa Prabhu wrote: From: Roopa Prabhu This patch adds support for recently added link IFLA_PROTO_DOWN_REASON attribute. IFLA_PROTO_DOWN_REASON enumerates reasons for the already existing IFLA_PROTO_DOWN link attribute. $ cat /etc/ip

Re: [PATCH iproute2 net-next v2] iplink: add support for protodown reason

2020-09-01 Thread David Ahern
On 8/28/20 9:42 PM, Roopa Prabhu wrote: > From: Roopa Prabhu > > This patch adds support for recently > added link IFLA_PROTO_DOWN_REASON attribute. > IFLA_PROTO_DOWN_REASON enumerates reasons > for the already existing IFLA_PROTO_DOWN link > attribute. > > $ cat /etc/iproute2/protodown_reasons.

[PATCH iproute2 net-next v2] iplink: add support for protodown reason

2020-08-28 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support for recently added link IFLA_PROTO_DOWN_REASON attribute. IFLA_PROTO_DOWN_REASON enumerates reasons for the already existing IFLA_PROTO_DOWN link attribute. $ cat /etc/iproute2/protodown_reasons.d/r.conf 0 mlag 1 evpn 2 vrrp 3 psecurity $ ip link set d

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-28 Thread Roopa Prabhu
On 8/23/20 7:20 PM, David Ahern wrote: External email: Use caution opening links or attachments On 8/20/20 9:52 PM, Roopa Prabhu wrote: +void protodown_reason_n2a(int id, char *buf, int len) +{ + if (id < 0 || id >= PROTODOWN_REASON_NUM_BITS || numeric) { since the reason is limited to

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-28 Thread Roopa Prabhu
On 8/21/20 6:30 PM, Stephen Hemminger wrote: External email: Use caution opening links or attachments On Fri, 21 Aug 2020 14:09:14 -0700 Roopa Prabhu wrote: On 8/20/20 10:18 PM, Roopa Prabhu wrote: On 8/20/20 9:36 PM, Stephen Hemminger wrote: On Thu, 20 Aug 2020 20:52:02 -0700 Roopa Pra

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-23 Thread David Ahern
On 8/20/20 9:52 PM, Roopa Prabhu wrote: > +void protodown_reason_n2a(int id, char *buf, int len) > +{ > + if (id < 0 || id >= PROTODOWN_REASON_NUM_BITS || numeric) { since the reason is limited to 0-31, id > PROTODOWN_REASON_NUM_BITS should be an error. > + snprintf(buf, len, "%d"

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-21 Thread Stephen Hemminger
On Fri, 21 Aug 2020 14:09:14 -0700 Roopa Prabhu wrote: > On 8/20/20 10:18 PM, Roopa Prabhu wrote: > > > > On 8/20/20 9:36 PM, Stephen Hemminger wrote: > >> > >> > >> On Thu, 20 Aug 2020 20:52:02 -0700 > >> Roopa Prabhu wrote: > >> > >>> + if (tb[IFLA_PROTO_DOWN]) { > >>> + if

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-21 Thread Roopa Prabhu
On 8/20/20 10:18 PM, Roopa Prabhu wrote: On 8/20/20 9:36 PM, Stephen Hemminger wrote: On Thu, 20 Aug 2020 20:52:02 -0700 Roopa Prabhu wrote: + if (tb[IFLA_PROTO_DOWN]) { + if (rta_getattr_u8(tb[IFLA_PROTO_DOWN])) + print_bool(PRINT_ANY, +  

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-20 Thread Roopa Prabhu
On 8/20/20 9:36 PM, Stephen Hemminger wrote: On Thu, 20 Aug 2020 20:52:02 -0700 Roopa Prabhu wrote: + if (tb[IFLA_PROTO_DOWN]) { + if (rta_getattr_u8(tb[IFLA_PROTO_DOWN])) + print_bool(PRINT_ANY, +"proto_down", " protodown

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-20 Thread Stephen Hemminger
On Thu, 20 Aug 2020 20:52:02 -0700 Roopa Prabhu wrote: > + if (tb[IFLA_PROTO_DOWN]) { > + if (rta_getattr_u8(tb[IFLA_PROTO_DOWN])) > + print_bool(PRINT_ANY, > +"proto_down", " protodown on ", true); In general my preference is t

[PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-20 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support for recently added link IFLA_PROTO_DOWN_REASON attribute. IFLA_PROTO_DOWN_REASON enumerates reasons for the already existing IFLA_PROTO_DOWN link attribute. $ cat /etc/iproute2/protodown_reasons.d/r.conf 0 mlag 1 evpn 2 vrrp 3 psecurity $ ip link set d

Re: [PATCH iproute2 net-next v2 0/2] support for fdb nexthop groups

2020-06-11 Thread David Ahern
On 6/10/20 6:35 PM, Roopa Prabhu wrote: > From: Roopa Prabhu > > This series adds iproute2 support for recently added > kernel fdb nexthop groups > > example: > /* create fdb nexthop group */ > $ip nexthop add id 12 via 172.16.1.2 fdb > $ip nexthop add id 13 via 172.16.1.3 fdb > $ip nexthop add

[PATCH iproute2 net-next v2 0/2] support for fdb nexthop groups

2020-06-10 Thread Roopa Prabhu
From: Roopa Prabhu This series adds iproute2 support for recently added kernel fdb nexthop groups example: /* create fdb nexthop group */ $ip nexthop add id 12 via 172.16.1.2 fdb $ip nexthop add id 13 via 172.16.1.3 fdb $ip nexthop add id 102 group 12/13 fdb /* assign nexthop group to fdb en

[PATCH iproute2 net-next v2 1/2] ipnexthop: support for fdb nexthops

2020-06-10 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to add and delete ecmp nexthops of type fdb. Such nexthops can be linked to vxlan fdb entries. $ip nexthop add id 12 via 172.16.1.2 fdb $ip nexthop add id 13 via 172.16.1.3 fdb $ip nexthop add id 102 group 12/13 fdb $bridge fdb add 02:02:00:00:00:13 de

[PATCH iproute2 net-next v2 2/2] bridge: support for nexthop id in fdb entries

2020-06-10 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to assign a nexthop group id to an fdb entry. $bridge fdb add 02:02:00:00:00:13 dev vx10 nhid 102 self Signed-off-by: Roopa Prabhu --- bridge/fdb.c | 22 +++--- man/man8/bridge.8 | 13 ++--- 2 files changed, 29 insertions

Re: [PATCH iproute2 net-next 1/2] ipnexthop: support for fdb nexthops

2020-06-10 Thread David Ahern
On 6/8/20 9:46 PM, Roopa Prabhu wrote: > @@ -70,6 +71,12 @@ static int nh_dump_filter(struct nlmsghdr *nlh, int reqlen) > return err; > } > > + if (filter.fdb) { > + addattr_l(nlh, reqlen, NHA_FDB, NULL, 0); missing 'err = ' > + if (err) >

[PATCH iproute2 net-next 2/2] bridge: support for nexthop id in fdb entries

2020-06-08 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to assign a nexthop group id to an fdb entry. $bridge fdb add 02:02:00:00:00:13 dev vx10 nhid 102 self Signed-off-by: Roopa Prabhu --- bridge/fdb.c | 22 +++--- man/man8/bridge.8 | 13 ++--- 2 files changed, 29 insertions

[PATCH iproute2 net-next 0/2] support for fdb nexthop groups

2020-06-08 Thread Roopa Prabhu
From: Roopa Prabhu This series adds iproute2 support for recently added kernel fdb nexthop groups example: /* create fdb nexthop group */ $ip nexthop add id 12 via 172.16.1.2 fdb $ip nexthop add id 13 via 172.16.1.3 fdb $ip nexthop add id 102 group 12/13 fdb /* assign nexthop group to fdb en

[PATCH iproute2 net-next 1/2] ipnexthop: support for fdb nexthops

2020-06-08 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to add and delete ecmp nexthops of type fdb. Such nexthops can be linked to vxlan fdb entries. $ip nexthop add id 12 via 172.16.1.2 fdb $ip nexthop add id 13 via 172.16.1.3 fdb $ip nexthop add id 102 group 12/13 fdb $bridge fdb add 02:02:00:00:00:13 de

Re: [PATCH iproute2/net-next] man: tc-ct.8: Add manual page for ct tc action

2020-05-18 Thread Paul Blakey
On 18/05/2020 17:56, David Ahern wrote: > On 5/14/20 8:10 AM, Paul Blakey wrote: >> Signed-off-by: Paul Blakey >> --- >> man/man8/tc-ct.8 | 107 >> +++ >> man/man8/tc-flower.8 | 6 +++ >> 2 files changed, 113 insertions(+) >> create mode 1

Re: [PATCH iproute2/net-next] man: tc-ct.8: Add manual page for ct tc action

2020-05-18 Thread David Ahern
On 5/14/20 8:10 AM, Paul Blakey wrote: > Signed-off-by: Paul Blakey > --- > man/man8/tc-ct.8 | 107 > +++ > man/man8/tc-flower.8 | 6 +++ > 2 files changed, 113 insertions(+) > create mode 100644 man/man8/tc-ct.8 > > diff --git a/man/man8/t

Re: [PATCH iproute2/net-next] man: tc-ct.8: Add manual page for ct tc action

2020-05-14 Thread Edward Cree
On 14/05/2020 15:10, Paul Blakey wrote: > Signed-off-by: Paul Blakey > --- > man/man8/tc-ct.8 | 107 > +++ > man/man8/tc-flower.8 | 6 +++ > 2 files changed, 113 insertions(+) > create mode 100644 man/man8/tc-ct.8 Glad to see this, better tc

[PATCH iproute2/net-next] man: tc-ct.8: Add manual page for ct tc action

2020-05-14 Thread Paul Blakey
Signed-off-by: Paul Blakey --- man/man8/tc-ct.8 | 107 +++ man/man8/tc-flower.8 | 6 +++ 2 files changed, 113 insertions(+) create mode 100644 man/man8/tc-ct.8 diff --git a/man/man8/tc-ct.8 b/man/man8/tc-ct.8 new file mode 100644 index 0

Re: [PATCH iproute2 net-next v3 1/2] bridge: fdb get support

2019-10-02 Thread Roopa Prabhu
On Tue, Oct 1, 2019 at 7:59 AM Stephen Hemminger wrote: > > On Mon, 30 Sep 2019 21:52:22 -0700 > Roopa Prabhu wrote: > > > + > > + if (sscanf(addr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", > > +abuf, abuf+1, abuf+2, > > +abuf+3, abuf+4, abuf+5) != 6) { > > +

Re: [PATCH iproute2 net-next v3 0/2] support for bridge fdb and neigh get

2019-10-01 Thread David Ahern
On 9/30/19 10:52 PM, Roopa Prabhu wrote: > From: Roopa Prabhu > > This series adds iproute2 support to lookup a bridge fdb and > neigh entry. > example: > $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 > 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge > > $ip neigh get 10.

Re: [PATCH iproute2 net-next v3 1/2] bridge: fdb get support

2019-10-01 Thread Stephen Hemminger
On Mon, 30 Sep 2019 21:52:22 -0700 Roopa Prabhu wrote: > + > + if (sscanf(addr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", > +abuf, abuf+1, abuf+2, > +abuf+3, abuf+4, abuf+5) != 6) { > + fprintf(stderr, "Invalid mac address %s\n", addr); > + retur

[PATCH iproute2 net-next v3 0/2] support for bridge fdb and neigh get

2019-09-30 Thread Roopa Prabhu
From: Roopa Prabhu This series adds iproute2 support to lookup a bridge fdb and neigh entry. example: $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge $ip neigh get 10.0.2.4 dev test-dummy0 10.0.2.4 dev test-dummy0 lladdr de:ad

[PATCH iproute2 net-next v3 1/2] bridge: fdb get support

2019-09-30 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to lookup a bridge fdb entry using recently added support in the kernel using RTM_GETNEIGH (and AF_BRIDGE family). example: $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge Signed-off

[PATCH iproute2 net-next v3 2/2] ipneigh: neigh get support

2019-09-30 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to lookup a neigh entry using recently added support in the kernel using RTM_GETNEIGH example: $ip neigh get 10.0.2.4 dev test-dummy0 10.0.2.4 dev test-dummy0 lladdr de:ad:be:ef:13:37 PERMANENT Signed-off-by: Roopa Prabhu Tested-by: Ivan Vecera ---

Re: [PATCH iproute2 net-next v2 2/2] ipneigh: neigh get support

2019-09-30 Thread Roopa Prabhu
On Mon, Sep 30, 2019 at 9:42 AM David Ahern wrote: > > On 9/28/19 2:22 PM, Roopa Prabhu wrote: > > + > > + req.ndm.ndm_family = dst.family; > > + if (addattr_l(&req.n, sizeof(req), NDA_DST, &dst.data, dst.bytelen) < > > 0) > > + return -1; > > + > > + if (d) { > > +

Re: [PATCH iproute2 net-next v2 2/2] ipneigh: neigh get support

2019-09-30 Thread David Ahern
On 9/28/19 2:22 PM, Roopa Prabhu wrote: > + > + req.ndm.ndm_family = dst.family; > + if (addattr_l(&req.n, sizeof(req), NDA_DST, &dst.data, dst.bytelen) < 0) > + return -1; > + > + if (d) { > + ll_init_map(&rth); ll_init_map is not needed and really not somethin

Re: [PATCH iproute2 net-next v2 1/2] bridge: fdb get support

2019-09-30 Thread David Ahern
On 9/28/19 2:22 PM, Roopa Prabhu wrote: > @@ -518,6 +520,113 @@ static int fdb_modify(int cmd, int flags, int argc, > char **argv) > return 0; > } > > +static int fdb_get(int argc, char **argv) > +{ > + struct { > + struct nlmsghdr n; > + struct ndmsg

Re: [PATCH iproute2 net-next v2 0/2] support for bridge fdb and neigh get

2019-09-30 Thread Roopa Prabhu
On Mon, Sep 30, 2019 at 7:57 AM Ivan Vecera wrote: > > On Sat, 28 Sep 2019 13:22:08 -0700 > Roopa Prabhu wrote: > > > From: Roopa Prabhu > > > > This series adds iproute2 support to lookup a bridge fdb and > > neigh entry. > > example: > > $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1

Re: [PATCH iproute2 net-next v2 0/2] support for bridge fdb and neigh get

2019-09-30 Thread Ivan Vecera
On Sat, 28 Sep 2019 13:22:08 -0700 Roopa Prabhu wrote: > From: Roopa Prabhu > > This series adds iproute2 support to lookup a bridge fdb and > neigh entry. > example: > $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 > 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge > > $

[PATCH iproute2 net-next v2 1/2] bridge: fdb get support

2019-09-28 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to lookup a bridge fdb entry using recently added support in the kernel using RTM_GETNEIGH (and AF_BRIDGE family). example: $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge Signed-off

[PATCH iproute2 net-next v2 0/2] support for bridge fdb and neigh get

2019-09-28 Thread Roopa Prabhu
From: Roopa Prabhu This series adds iproute2 support to lookup a bridge fdb and neigh entry. example: $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge $ip neigh get 10.0.2.4 dev test-dummy0 10.0.2.4 dev test-dummy0 lladdr de:ad

[PATCH iproute2 net-next v2 2/2] ipneigh: neigh get support

2019-09-28 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to lookup a neigh entry using recently added support in the kernel using RTM_GETNEIGH example: $ip neigh get 10.0.2.4 dev test-dummy0 10.0.2.4 dev test-dummy0 lladdr de:ad:be:ef:13:37 PERMANENT Signed-off-by: Roopa Prabhu --- ip/ipneigh.c

Re: [PATCH iproute2 net-next 1/2] bridge: fdb get support

2019-09-28 Thread Roopa Prabhu
On Sat, Sep 28, 2019 at 8:46 AM Stephen Hemminger wrote: > > On Fri, 27 Sep 2019 21:48:23 -0700 > Roopa Prabhu wrote: > > Overall, looks good. > > > + if (print_fdb(answer, (void *)stdout) < 0) { > > Cast to void is not necessary in C (it is in C++) thats a copy/paste from iproute get code.

Re: [PATCH iproute2 net-next 1/2] bridge: fdb get support

2019-09-28 Thread Stephen Hemminger
On Fri, 27 Sep 2019 21:48:23 -0700 Roopa Prabhu wrote: Overall, looks good. > + if (print_fdb(answer, (void *)stdout) < 0) { Cast to void is not necessary in C (it is in C++)

[PATCH iproute2 net-next 2/2] ipneigh: neigh get support

2019-09-27 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to lookup a neigh entry using recently added support in the kernel using RTM_GETNEIGH example: $ip neigh get 10.0.2.4 dev test-dummy0 10.0.2.4 dev test-dummy0 lladdr de:ad:be:ef:13:37 PERMANENT Signed-off-by: Roopa Prabhu --- ip/ipneigh.c

[PATCH iproute2 net-next 1/2] bridge: fdb get support

2019-09-27 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to lookup a bridge fdb entry using recently added support in the kernel using RTM_GETNEIGH (and AF_BRIDGE family). example: $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge Signed-off

[PATCH iproute2 net-next 0/2] support for bridge fdb and neigh get

2019-09-27 Thread Roopa Prabhu
From: Roopa Prabhu This series adds iproute2 support to lookup a bridge fdb and neigh entry. example: $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge $ip neigh get 10.0.2.4 dev test-dummy0 10.0.2.4 dev test-dummy0 lladdr de:ad

[patch iproute2/net-next] devlink: add reload failed indication

2019-09-06 Thread Jiri Pirko
From: Jiri Pirko Signed-off-by: Jiri Pirko --- devlink/devlink.c| 22 +++--- include/uapi/linux/devlink.h | 2 ++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/devlink/devlink.c b/devlink/devlink.c index 8c5612a9f9a8..8020d76dd7f7 100644 --- a/devl

Re: [PATCH iproute2 net-next v5 1/5] etf: Add skip_sock_check

2019-07-19 Thread Patel, Vedang
> On Jul 18, 2019, at 10:12 PM, Stephen Hemminger > wrote: > > On Thu, 18 Jul 2019 12:55:39 -0700 > Vedang Patel wrote: > >> -print_string(PRINT_ANY, "deadline_mode", "deadline_mode %s", >> +print_string(PRINT_ANY, "deadline_mode", "deadline_mode %s ", >>

Re: [PATCH iproute2 net-next v5 1/5] etf: Add skip_sock_check

2019-07-18 Thread Stephen Hemminger
On Thu, 18 Jul 2019 12:55:39 -0700 Vedang Patel wrote: > - print_string(PRINT_ANY, "deadline_mode", "deadline_mode %s", > + print_string(PRINT_ANY, "deadline_mode", "deadline_mode %s ", > (qopt->flags & TC_ETF_DEADLINE_MODE_ON) ? "on" > : "off"); > + pri

Re: [PATCH iproute2 net-next v5 1/5] etf: Add skip_sock_check

2019-07-18 Thread David Ahern
On 7/18/19 1:55 PM, Vedang Patel wrote: > ETF Qdisc currently checks for a socket with SO_TXTIME socket option. If > either is not present, the packet is dropped. In the future commits, we > want other Qdiscs to add packet with launchtime to the ETF Qdisc. Also, > there are some packets (e.g. ICMP

[PATCH iproute2 net-next v5 3/5] taprio: add support for setting txtime_delay.

2019-07-18 Thread Vedang Patel
This adds support for setting the txtime_delay parameter which is useful for the txtime offload mode of taprio. Signed-off-by: Vedang Patel --- tc/q_taprio.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/tc/q_taprio.c b/tc/q_taprio.c index 1db2aba6e

[PATCH iproute2 net-next v5 5/5] tc: taprio: Update documentation

2019-07-18 Thread Vedang Patel
Add documentation for the latest options, flags and txtime-delay, to the taprio manpage. This also adds an example to run tc in txtime offload mode. Signed-off-by: Vedang Patel --- man/man8/tc-taprio.8 | 40 1 file changed, 40 insertions(+) diff --git a

[PATCH iproute2 net-next v5 2/5] taprio: Add support for setting flags

2019-07-18 Thread Vedang Patel
From: Vinicius Costa Gomes This allows a new parameter, flags, to be passed to taprio. Currently, it only supports enabling the txtime-assist mode. But, we plan to add different modes for taprio (e.g. hardware offloading) and this parameter will be useful in enabling those modes. Signed-off-by:

[PATCH iproute2 net-next v5 4/5] tc: etf: Add documentation for skip_sock_check.

2019-07-18 Thread Vedang Patel
Document the newly added option (skip_sock_check) on the etf man-page. Signed-off-by: Vedang Patel --- man/man8/tc-etf.8 | 10 ++ 1 file changed, 10 insertions(+) diff --git a/man/man8/tc-etf.8 b/man/man8/tc-etf.8 index 30a12de7d2c7..4cb3b9e02d6e 100644 --- a/man/man8/tc-etf.8 +++ b/man

[PATCH iproute2 net-next v5 1/5] etf: Add skip_sock_check

2019-07-18 Thread Vedang Patel
ETF Qdisc currently checks for a socket with SO_TXTIME socket option. If either is not present, the packet is dropped. In the future commits, we want other Qdiscs to add packet with launchtime to the ETF Qdisc. Also, there are some packets (e.g. ICMP packets) which may not have a socket associated

Re: [PATCH iproute2 net-next v4 5/6] tc: etf: Add documentation for skip-skb-check.

2019-07-18 Thread Patel, Vedang
> On Jul 18, 2019, at 10:36 AM, David Ahern wrote: > > On 7/16/19 1:53 PM, Vedang Patel wrote: >> Document the newly added option (skip-skb-check) on the etf man-page. >> >> Signed-off-by: Vedang Patel >> --- >> man/man8/tc-etf.8 | 10 ++ >> 1 file changed, 10 insertions(+) >> >> dif

Re: [PATCH iproute2 net-next v4 1/6] Update kernel headers

2019-07-18 Thread Patel, Vedang
> On Jul 18, 2019, at 10:32 AM, David Ahern wrote: > > On 7/16/19 1:53 PM, Vedang Patel wrote: >> The type for txtime-delay parameter will change from s32 to u32. So, >> make the corresponding change in the ABI file as well. >> >> Signed-off-by: Vedang Patel >> --- >> include/uapi/linux/pkt_

Re: [PATCH iproute2 net-next v4 5/6] tc: etf: Add documentation for skip-skb-check.

2019-07-18 Thread David Ahern
On 7/16/19 1:53 PM, Vedang Patel wrote: > Document the newly added option (skip-skb-check) on the etf man-page. > > Signed-off-by: Vedang Patel > --- > man/man8/tc-etf.8 | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/man/man8/tc-etf.8 b/man/man8/tc-etf.8 > index 30a12de7d2

Re: [PATCH iproute2 net-next v4 1/6] Update kernel headers

2019-07-18 Thread David Ahern
On 7/16/19 1:53 PM, Vedang Patel wrote: > The type for txtime-delay parameter will change from s32 to u32. So, > make the corresponding change in the ABI file as well. > > Signed-off-by: Vedang Patel > --- > include/uapi/linux/pkt_sched.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[PATCH iproute2 net-next v4 3/6] taprio: Add support for setting flags

2019-07-16 Thread Vedang Patel
From: Vinicius Costa Gomes This allows a new parameter, flags, to be passed to taprio. Currently, it only supports enabling the txtime-assist mode. But, we plan to add different modes for taprio (e.g. hardware offloading) and this parameter will be useful in enabling those modes. Signed-off-by:

[PATCH iproute2 net-next v4 6/6] tc: taprio: Update documentation

2019-07-16 Thread Vedang Patel
Add documentation for the latest options, flags and txtime-delay, to the taprio manpage. This also adds an example to run tc in txtime offload mode. Signed-off-by: Vedang Patel --- man/man8/tc-taprio.8 | 40 1 file changed, 40 insertions(+) diff --git a

[PATCH iproute2 net-next v4 2/6] etf: Add skip_sock_check

2019-07-16 Thread Vedang Patel
ETF Qdisc currently checks for a socket with SO_TXTIME socket option. If either is not present, the packet is dropped. In the future commits, we want other Qdiscs to add packet with launchtime to the ETF Qdisc. Also, there are some packets (e.g. ICMP packets) which may not have a socket associated

[PATCH iproute2 net-next v4 1/6] Update kernel headers

2019-07-16 Thread Vedang Patel
The type for txtime-delay parameter will change from s32 to u32. So, make the corresponding change in the ABI file as well. Signed-off-by: Vedang Patel --- include/uapi/linux/pkt_sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/pkt_sched.h b/include/

[PATCH iproute2 net-next v4 5/6] tc: etf: Add documentation for skip-skb-check.

2019-07-16 Thread Vedang Patel
Document the newly added option (skip-skb-check) on the etf man-page. Signed-off-by: Vedang Patel --- man/man8/tc-etf.8 | 10 ++ 1 file changed, 10 insertions(+) diff --git a/man/man8/tc-etf.8 b/man/man8/tc-etf.8 index 30a12de7d2c7..2e01a591dbaa 100644 --- a/man/man8/tc-etf.8 +++ b/man/

[PATCH iproute2 net-next v4 4/6] taprio: add support for setting txtime_delay.

2019-07-16 Thread Vedang Patel
This adds support for setting the txtime_delay parameter which is useful for the txtime offload mode of taprio. Signed-off-by: Vedang Patel --- tc/q_taprio.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/tc/q_taprio.c b/tc/q_taprio.c index 1db2aba6e

Re: [PATCH iproute2 net-next v3 3/5] taprio: add support for setting txtime_delay.

2019-07-15 Thread Patel, Vedang
> On Jul 15, 2019, at 4:38 PM, Stephen Hemminger > wrote: > > On Mon, 15 Jul 2019 15:51:42 -0700 > Vedang Patel wrote: > >> +if (get_s32(&txtime_delay, *argv, 0)) { > > Is txtime_delay of a negative value meaningful? No, txtime-delay should always be a positive value.

Re: [PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Patel, Vedang
Hi Stephen, > On Jul 15, 2019, at 4:37 PM, Stephen Hemminger > wrote: > > On Mon, 15 Jul 2019 15:51:41 -0700 > Vedang Patel wrote: > >> @@ -405,6 +420,7 @@ static int taprio_print_opt(struct qdisc_util *qu, FILE >> *f, struct rtattr *opt) >> struct rtattr *tb[TCA_TAPRIO_ATTR_MAX + 1]; >

Re: [PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Jakub Kicinski
On Mon, 15 Jul 2019 17:24:22 -0700, Stephen Hemminger wrote: > On Mon, 15 Jul 2019 17:15:15 -0700 > Jakub Kicinski wrote: > > On Mon, 15 Jul 2019 16:37:43 -0700, Stephen Hemminger wrote: > > > On Mon, 15 Jul 2019 15:51:41 -0700 > > > Vedang Patel wrote: > > > > @@ -442,6 +458,11 @@ static i

Re: [PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 17:15:15 -0700 Jakub Kicinski wrote: > On Mon, 15 Jul 2019 16:37:43 -0700, Stephen Hemminger wrote: > > On Mon, 15 Jul 2019 15:51:41 -0700 > > Vedang Patel wrote: > > > @@ -442,6 +458,11 @@ static int taprio_print_opt(struct qdisc_util *qu, > > > FILE *f, struct rtattr *op

Re: [PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Jakub Kicinski
On Mon, 15 Jul 2019 16:37:43 -0700, Stephen Hemminger wrote: > On Mon, 15 Jul 2019 15:51:41 -0700 > Vedang Patel wrote: > > @@ -442,6 +458,11 @@ static int taprio_print_opt(struct qdisc_util *qu, > > FILE *f, struct rtattr *opt) > > > > print_string(PRINT_ANY, "clockid", "clockid %s", > >

Re: [PATCH iproute2 net-next v3 3/5] taprio: add support for setting txtime_delay.

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 15:51:42 -0700 Vedang Patel wrote: > + if (get_s32(&txtime_delay, *argv, 0)) { Is txtime_delay of a negative value meaningful?

Re: [PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 15:51:41 -0700 Vedang Patel wrote: > @@ -405,6 +420,7 @@ static int taprio_print_opt(struct qdisc_util *qu, FILE > *f, struct rtattr *opt) > struct rtattr *tb[TCA_TAPRIO_ATTR_MAX + 1]; > struct tc_mqprio_qopt *qopt = 0; > __s32 clockid = CLOCKID_INVALID; > +

[PATCH iproute2 net-next v3 5/5] tc: taprio: Update documentation

2019-07-15 Thread Vedang Patel
Add documentation for the latest options, flags and txtime-delay, to the taprio manpage. This also adds an example to run tc in txtime offload mode. Signed-off-by: Vedang Patel --- man/man8/tc-taprio.8 | 40 1 file changed, 40 insertions(+) diff --git a

[PATCH iproute2 net-next v3 3/5] taprio: add support for setting txtime_delay.

2019-07-15 Thread Vedang Patel
This adds support for setting the txtime_delay parameter which is useful for the txtime offload mode of taprio. Signed-off-by: Vedang Patel --- tc/q_taprio.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tc/q_taprio.c b/tc/q_taprio.c index 930ecb9d1e

[PATCH iproute2 net-next v3 4/5] tc: etf: Add documentation for skip-skb-check.

2019-07-15 Thread Vedang Patel
Document the newly added option (skip-skb-check) on the etf man-page. Signed-off-by: Vedang Patel --- man/man8/tc-etf.8 | 10 ++ 1 file changed, 10 insertions(+) diff --git a/man/man8/tc-etf.8 b/man/man8/tc-etf.8 index 30a12de7d2c7..2e01a591dbaa 100644 --- a/man/man8/tc-etf.8 +++ b/man/

[PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Vedang Patel
From: Vinicius Costa Gomes This allows a new parameter, flags, to be passed to taprio. Currently, it only supports enabling the txtime-assist mode. But, we plan to add different modes for taprio (e.g. hardware offloading) and this parameter will be useful in enabling those modes. Signed-off-by:

[PATCH iproute2 net-next v3 1/5] etf: Add skip_sock_check

2019-07-15 Thread Vedang Patel
ETF Qdisc currently checks for a socket with SO_TXTIME socket option. If either is not present, the packet is dropped. In the future commits, we want other Qdiscs to add packet with launchtime to the ETF Qdisc. Also, there are some packets (e.g. ICMP packets) which may not have a socket associated

Re: [PATCH iproute2 net-next v2 1/6] Kernel header update for hardware offloading changes.

2019-07-15 Thread Patel, Vedang
Ok I will send out the patches again. Thanks, Vedang > On Jul 15, 2019, at 1:16 PM, David Ahern wrote: > > On 7/15/19 1:50 PM, Stephen Hemminger wrote: >> On Mon, 15 Jul 2019 19:40:19 + >> "Patel, Vedang" wrote: >> >>> Hi Stephen, >>> >>> The kernel patches corresponding to this series

Re: [PATCH iproute2 net-next v2 1/6] Kernel header update for hardware offloading changes.

2019-07-15 Thread David Ahern
On 7/15/19 1:50 PM, Stephen Hemminger wrote: > On Mon, 15 Jul 2019 19:40:19 + > "Patel, Vedang" wrote: > >> Hi Stephen, >> >> The kernel patches corresponding to this series have been merged. I just >> wanted to check whether these iproute2 related patches are on your TODO list. >> >> Let m

Re: [PATCH iproute2 net-next v2 1/6] Kernel header update for hardware offloading changes.

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 19:40:19 + "Patel, Vedang" wrote: > Hi Stephen, > > The kernel patches corresponding to this series have been merged. I just > wanted to check whether these iproute2 related patches are on your TODO list. > > Let me know if you need any information from me on these pat

Re: [PATCH iproute2 net-next v2 1/6] Kernel header update for hardware offloading changes.

2019-07-15 Thread Patel, Vedang
Hi Stephen, The kernel patches corresponding to this series have been merged. I just wanted to check whether these iproute2 related patches are on your TODO list. Let me know if you need any information from me on these patches. Thanks, Vedang Patel > On Jun 6, 2019, at 3:22 PM, Patel, Vedang

RE: [RESEND PATCH iproute2 net-next] devlink: Introduce PCI PF and VF port flavour and attribute

2019-07-09 Thread Parav Pandit
> -Original Message- > From: netdev-ow...@vger.kernel.org On > Behalf Of Parav Pandit > Sent: Tuesday, July 2, 2019 12:00 AM > To: netdev@vger.kernel.org > Cc: Saeed Mahameed ; > jakub.kicin...@netronome.com; Jiri Pirko ; Parav Pandit > > Subject: [RES

[RESEND PATCH iproute2 net-next] devlink: Introduce PCI PF and VF port flavour and attribute

2019-07-01 Thread Parav Pandit
Introduce PCI PF and VF port flavour and port attributes such as PF number and VF number. $ devlink port show pci/:05:00.0/0: type eth netdev eth0 flavour pcipf pfnum 0 pci/:05:00.0/1: type eth netdev eth1 flavour pcivf pfnum 0 vfnum 0 pci/:05:00.0/2: type eth netdev eth2 flavour pcivf

Re: [iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-18 Thread David Ahern
On 6/12/19 3:21 AM, Hangbin Liu wrote: > Add a new parameter '-Numeric' to show the number of protocol, scope, > dsfield, etc directly instead of converting it to human readable name. > Do the same on tc and ss. > > This patch is based on David Ahern's previous patch. > > Suggested-by: Phil Sutte

Re: [iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-14 Thread David Ahern
On 6/14/19 1:00 PM, Roman Mashak wrote: > On the 2nd thought: there already exists argument "-raw" for tc which > currently instructs printing handles in hex representation. Why not to > adopt this for ip and ss as well rather then adding new key? show_raw seems to mean dump extra data as opposed

Re: [iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-14 Thread Roman Mashak
David Ahern writes: > On 6/12/19 10:01 AM, Roman Mashak wrote: >> Hangbin Liu writes: >> >>> Add a new parameter '-Numeric' to show the number of protocol, scope, >>> dsfield, etc directly instead of converting it to human readable name. >>> Do the same on tc and ss. >>> >>> This patch is based

Re: [iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-14 Thread David Ahern
On 6/12/19 10:01 AM, Roman Mashak wrote: > Hangbin Liu writes: > >> Add a new parameter '-Numeric' to show the number of protocol, scope, >> dsfield, etc directly instead of converting it to human readable name. >> Do the same on tc and ss. >> >> This patch is based on David Ahern's previous patc

Re: [iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-13 Thread Hangbin Liu
Hi Roman, On Wed, Jun 12, 2019 at 12:01:20PM -0400, Roman Mashak wrote: > Hangbin Liu writes: > > > Add a new parameter '-Numeric' to show the number of protocol, scope, > > dsfield, etc directly instead of converting it to human readable name. > > Do the same on tc and ss. > > > > This patch is

Re: [iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-12 Thread Roman Mashak
Hangbin Liu writes: > Add a new parameter '-Numeric' to show the number of protocol, scope, > dsfield, etc directly instead of converting it to human readable name. > Do the same on tc and ss. > > This patch is based on David Ahern's previous patch. > [...] It would be good idea to specify the

Re: [iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-12 Thread Hangbin Liu
On Wed, 12 Jun 2019 at 17:21, Hangbin Liu wrote: > > Add a new parameter '-Numeric' to show the number of protocol, scope, > dsfield, etc directly instead of converting it to human readable name. > Do the same on tc and ss. > > This patch is based on David Ahern's previous patch. > > Suggested-by:

[iproute2 net-next PATCH] ip: add a new parameter -Numeric

2019-06-12 Thread Hangbin Liu
Add a new parameter '-Numeric' to show the number of protocol, scope, dsfield, etc directly instead of converting it to human readable name. Do the same on tc and ss. This patch is based on David Ahern's previous patch. Suggested-by: Phil Sutter Signed-off-by: Hangbin Liu --- include/utils.h

[PATCH iproute2 net-next v2 5/6] tc: etf: Add documentation for skip-skb-check.

2019-06-06 Thread Vedang Patel
Document the newly added option (skip-skb-check) on the etf man-page. Signed-off-by: Vedang Patel --- man/man8/tc-etf.8 | 10 ++ 1 file changed, 10 insertions(+) diff --git a/man/man8/tc-etf.8 b/man/man8/tc-etf.8 index 30a12de7d2c7..2e01a591dbaa 100644 --- a/man/man8/tc-etf.8 +++ b/man/

Re: [PATCH iproute2 net-next v1 3/6] taprio: Add support for enabling offload mode

2019-06-06 Thread Patel, Vedang
> On Jun 6, 2019, at 2:46 PM, Stephen Hemminger > wrote: > > On Thu, 6 Jun 2019 21:13:50 + > "Patel, Vedang" wrote: > >>> On Jun 6, 2019, at 12:43 PM, Stephen Hemminger >>> wrote: >>> >>> On Thu, 6 Jun 2019 10:52:18 -0700 >>> Vedang Patel wrote: >>> @@ -405,6 +420,7 @@ static

[PATCH iproute2 net-next v2 3/6] taprio: Add support for setting flags

2019-06-06 Thread Vedang Patel
From: Vinicius Costa Gomes This allows a new parameter, flags, to be passed to taprio. Currently, it only supports enabling the txtime-assist mode. But, we plan to add different modes for taprio (e.g. hardware offloading) and this parameter will be useful in enabling those modes. Signed-off-by:

[PATCH iproute2 net-next v2 1/6] Kernel header update for hardware offloading changes.

2019-06-06 Thread Vedang Patel
This should only be updated after the kernel patches related to txtime-offload have been merged into the kernel. Signed-off-by: Vedang Patel --- include/uapi/linux/pkt_sched.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h

[PATCH iproute2 net-next v2 2/6] etf: Add skip_sock_check

2019-06-06 Thread Vedang Patel
ETF Qdisc currently checks for a socket with SO_TXTIME socket option. If either is not present, the packet is dropped. In the future commits, we want other Qdiscs to add packet with launchtime to the ETF Qdisc. Also, there are some packets (e.g. ICMP packets) which may not have a socket associated

  1   2   3   4   5   6   7   8   9   >