[net-next PATCH] net: Avoid overwriting valid skb->napi_id

2020-06-18 Thread Amritha Nambiar
y poll by a NAPI driver and hence needs to be copied into the socket. Signed-off-by: Amritha Nambiar --- include/net/busy_poll.h |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/net/busy_poll.h b/include/net/busy_poll.h index 86e028388bad..b001fa91c14e 100644 --

[bpf-next PATCH v3] bpf: Add rx_queue_mapping to bpf_sock

2020-05-26 Thread Amritha Nambiar
S wrapping, reported by kbuild test robot Signed-off-by: Amritha Nambiar --- include/uapi/linux/bpf.h |1 + net/core/filter.c| 18 ++ 2 files changed, 19 insertions(+) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 54b93f8b49b8..2a833f23c09f 10

[bpf-next PATCH v2] bpf: Add rx_queue_mapping to bpf_sock

2020-05-22 Thread Amritha Nambiar
that case. v2: fixed build error for CONFIG_XPS wrapping, reported by kbuild test robot Signed-off-by: Amritha Nambiar --- include/uapi/linux/bpf.h |1 + net/core/filter.c| 18 ++ 2 files changed, 19 insertions(+) diff --git a/include/uapi/linux/bpf.h b/in

[bpf-next PATCH] bpf: Add rx_queue_mapping to bpf_sock

2020-05-21 Thread Amritha Nambiar
that case. Signed-off-by: Amritha Nambiar --- include/uapi/linux/bpf.h |1 + net/core/filter.c| 13 + 2 files changed, 14 insertions(+) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 97e1fd19ff58..d2acd5aeae8d 100644 --- a/include/uapi/linux/b

[iproute2-next PATCH v6] tc: flower: Classify packets based port ranges

2018-11-27 Thread Amritha Nambiar
man updates explaining filtering based on port ranges. Removed 'range' keyword. v3: Modified flower_port_range_attr_type calls. v2: Addressed Jiri's comment to sync output format with input Signed-off-by: Amritha Nambiar --- man/man8/tc-flower.8 | 13 +--- tc/f_flower.c

[iproute2-next PATCH v5] tc: flower: Classify packets based port ranges

2018-11-26 Thread Amritha Nambiar
d space in output format. v4: Added man updates explaining filtering based on port ranges. Removed 'range' keyword. v3: Modified flower_port_range_attr_type calls. v2: Addressed Jiri's comment to sync output format with input Signed-off-by: Amritha Nambiar --- man/man8/tc-flo

[iproute2-next PATCH v4] tc: flower: Classify packets based port ranges

2018-11-20 Thread Amritha Nambiar
on port ranges. Removed 'range' keyword. v3: Modified flower_port_range_attr_type calls. v2: Addressed Jiri's comment to sync output format with input Signed-off-by: Amritha Nambiar --- man/man8/tc-flower.8 | 13 +++-- tc/f_flower.

[iproute2-next PATCH v2] man: tc-flower: Add explanation for range option

2018-11-20 Thread Amritha Nambiar
Add details explaining filtering based on port ranges. v2: Modified description to remove range as standalone option and updated as part of dst_port/src_port. Signed-off-by: Amritha Nambiar --- man/man8/tc-flower.8 | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff

[iproute2-next PATCH v3 2/2] man: tc-flower: Add explanation for range option

2018-11-15 Thread Amritha Nambiar
Add details explaining filtering based on port ranges. Signed-off-by: Amritha Nambiar --- man/man8/tc-flower.8 | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8 index 8be8882..768bfa1 100644 --- a/man/man8/tc-flower.8

[iproute2-next PATCH v3 1/2] tc: flower: Classify packets based port ranges

2018-11-15 Thread Amritha Nambiar
. v2: Addressed Jiri's comment to sync output format with input Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_cls.h |7 ++ tc/f_flower.c| 143 +++--- 2 files changed, 140 insertions(+), 10 deletions(-) diff --git a/include

[net-next PATCH v4] net: sched: cls_flower: Classify packets using port ranges

2018-11-12 Thread Amritha Nambiar
w bit TCA_FLOWER_FLAGS_RANGE to decide normal/range lookup. 4. Cleaned up fl_lookup function. Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_cls.h |7 ++ net/sched/cls_flower.c | 155 -- 2 files changed, 156 insertions(+), 6 deletions(-)

[net-next PATCH v3] net: sched: cls_flower: Classify packets using port ranges

2018-11-09 Thread Amritha Nambiar
empty lines. v2: Addressed Jiri's comments: 1. Added separate functions for dst and src comparisons. 2. Removed endpoint enum. 3. Added new bit TCA_FLOWER_FLAGS_RANGE to decide normal/range lookup. 4. Cleaned up fl_lookup function. Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_

[iproute2 PATCH v2] tc: flower: Classify packets based port ranges

2018-11-07 Thread Amritha Nambiar
type none pass val 0 index 2 ref 1 bind 1 installed 58 sec used 2 sec Action statistics: Sent 920 bytes 20 pkt (dropped 20, overlimits 0 requeues 0) backlog 0b 0p requeues 0 v2: Addressed Jiri's comment to sync output format with input Signed-off-by: Amritha Na

[net-next PATCH v2] net: sched: cls_flower: Classify packets using port ranges

2018-11-07 Thread Amritha Nambiar
d src comparisons. 2. Removed endpoint enum. 3. Added new bit TCA_FLOWER_FLAGS_RANGE to decide normal/range lookup. 4. Cleaned up fl_lookup function. Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_cls.h |7 ++ net/sched/cls_flower.c | 133

[iproute2 PATCH] tc: flower: Classify packets based port ranges

2018-10-12 Thread Amritha Nambiar
action drop random type none pass val 0 index 2 ref 1 bind 1 installed 28 sec used 6 sec Action statistics: Sent 460 bytes 10 pkt (dropped 10, overlimits 0 requeues 0) backlog 0b 0p requeues 0 Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_cls.h

[net-next PATCH] net: sched: cls_flower: Classify packets using port ranges

2018-10-12 Thread Amritha Nambiar
) backlog 0b 0p requeues 0 Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_cls.h |5 ++ net/sched/cls_flower.c | 134 -- 2 files changed, 132 insertions(+), 7 deletions(-) diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux

[iproute2,RFC PATCH] tc: range: Introduce TC range classifier

2018-09-13 Thread Amritha Nambiar
, overlimits 0 requeues 0) backlog 0b 0p requeues 0 Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_cls.h | 19 ++ tc/Makefile |1 tc/f_range.c | 369 ++ 3 files changed, 389 insertions(+) create mode

[net-next, RFC PATCH] net: sched: cls_range: Introduce Range classifier

2018-09-13 Thread Amritha Nambiar
460 bytes 10 pkt (dropped 10, overlimits 0 requeues 0) backlog 0b 0p requeues 0 Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_cls.h | 19 + net/sched/Kconfig| 10 + net/sched/Makefile |1 net/sched/cls_range.c| 725

[net-next,RFC PATCH] Introduce TC Range classifier

2018-09-13 Thread Amritha Nambiar
1: gact action drop random type none pass val 0 index 2 ref 1 bind 1 installed 1310 sec used 2 sec Action statistics: Sent 460 bytes 10 pkt (dropped 10, overlimits 0 requeues 0) backlog 0b 0p requeues 0 --- Amritha Nambiar (1): net: sched: cls_ra

[net-next PATCH v6 7/7] Documentation: Add explanation for XPS using Rx-queue(s) map

2018-06-30 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar --- Documentation/ABI/testing/sysfs-class-net-queues | 11 Documentation/networking/scaling.txt | 61 ++ 2 files changed, 61 insertions(+), 11 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-net-queues b

[net-next PATCH v6 5/7] net: Enable Tx queue selection based on Rx queues

2018-06-30 Thread Amritha Nambiar
hashing. Signed-off-by: Amritha Nambiar --- include/net/sock.h | 10 net/core/dev.c | 62 ++-- 2 files changed, 55 insertions(+), 17 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index 2b097cc..2ed99bf 100644

[net-next PATCH v6 6/7] net-sysfs: Add interface for Rx queue(s) map per Tx queue

2018-06-30 Thread Amritha Nambiar
Extend transmit queue sysfs attribute to configure Rx queue(s) map per Tx queue. By default no receive queues are configured for the Tx queue. - /sys/class/net/eth0/queues/tx-*/xps_rxqs Signed-off-by: Amritha Nambiar --- net/core/net-sysfs.c | 83

[net-next PATCH v6 0/7] Symmetric queue selection using XPS for Rx queues

2018-06-30 Thread Amritha Nambiar
ed up sk_tx_queue_set/sk_rx_queue_set functions. - Added sk_rx_queue_clear to make it consistent with tx_queue_mapping initialization. --- Amritha Nambiar (7): net: Refactor XPS for CPUs and Rx queues net: Use static_key for XPS maps net: sock: Change tx_queue_mapping in sock_common to uns

[net-next PATCH v6 1/7] net: Refactor XPS for CPUs and Rx queues

2018-06-30 Thread Amritha Nambiar
Refactor XPS code to support Tx queue selection based on CPU(s) map or Rx queue(s) map. Signed-off-by: Amritha Nambiar --- include/linux/cpumask.h | 11 ++ include/linux/netdevice.h | 98 - net/core/dev.c| 211

[net-next PATCH v6 3/7] net: sock: Change tx_queue_mapping in sock_common to unsigned short

2018-06-30 Thread Amritha Nambiar
tch for rx_queue_mapping. Signed-off-by: Amritha Nambiar --- include/net/sock.h | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index b3b7541..37b09c8 100644 --- a/include/net/sock.h +++ b/include/net/sock.

[net-next PATCH v6 4/7] net: Record receive queue number for a connection

2018-06-30 Thread Amritha Nambiar
. Rx queue is also marked in tcp_conn_request() to allow syn-ack to go on the right tx-queue associated with the queue on which syn is received. Signed-off-by: Amritha Nambiar Signed-off-by: Sridhar Samudrala --- include/net/busy_poll.h |1 + include/net/sock.h

[net-next PATCH v6 2/7] net: Use static_key for XPS maps

2018-06-30 Thread Amritha Nambiar
Use static_key for XPS maps to reduce the cost of extra map checks, similar to how it is used for RPS and RFS. This includes static_key 'xps_needed' for XPS and another for 'xps_rxqs_needed' for XPS using Rx queues map. Signed-off-by: Amritha Nambiar --- n

[net-next PATCH v5 7/7] Documentation: Add explanation for XPS using Rx-queue(s) map

2018-06-27 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar --- Documentation/ABI/testing/sysfs-class-net-queues | 11 Documentation/networking/scaling.txt | 61 ++ 2 files changed, 61 insertions(+), 11 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-net-queues b

[net-next PATCH v5 6/7] net-sysfs: Add interface for Rx queue(s) map per Tx queue

2018-06-27 Thread Amritha Nambiar
Extend transmit queue sysfs attribute to configure Rx queue(s) map per Tx queue. By default no receive queues are configured for the Tx queue. - /sys/class/net/eth0/queues/tx-*/xps_rxqs Signed-off-by: Amritha Nambiar --- net/core/net-sysfs.c | 81

[net-next PATCH v5 3/7] net: sock: Change tx_queue_mapping in sock_common to unsigned short

2018-06-27 Thread Amritha Nambiar
tch for rx_queue_mapping. Signed-off-by: Amritha Nambiar --- include/net/sock.h | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index b3b7541..0a7d57b 100644 --- a/include/net/sock.h +++ b/include/net/sock.

[net-next PATCH v5 4/7] net: Record receive queue number for a connection

2018-06-27 Thread Amritha Nambiar
. Rx queue is also marked in tcp_conn_request() to allow syn-ack to go on the right tx-queue associated with the queue on which syn is received. Signed-off-by: Amritha Nambiar Signed-off-by: Sridhar Samudrala --- include/net/busy_poll.h |1 + include/net/sock.h | 14 ++

[net-next PATCH v5 2/7] net: Use static_key for XPS maps

2018-06-27 Thread Amritha Nambiar
Use static_key for XPS maps to reduce the cost of extra map checks, similar to how it is used for RPS and RFS. This includes static_key 'xps_needed' for XPS and another for 'xps_rxqs_needed' for XPS using Rx queues map. Signed-off-by: Amritha Nambiar --- n

[net-next PATCH v5 5/7] net: Enable Tx queue selection based on Rx queues

2018-06-27 Thread Amritha Nambiar
hashing. Signed-off-by: Amritha Nambiar --- include/net/sock.h | 10 net/core/dev.c | 62 ++-- 2 files changed, 55 insertions(+), 17 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index f73dbca..3b22782 100644

[net-next PATCH v5 1/7] net: Refactor XPS for CPUs and Rx queues

2018-06-27 Thread Amritha Nambiar
Refactor XPS code to support Tx queue selection based on CPU(s) map or Rx queue(s) map. Signed-off-by: Amritha Nambiar --- include/linux/cpumask.h | 11 ++ include/linux/netdevice.h | 97 - net/core/dev.c| 211

[net-next PATCH v5 0/7] Symmetric queue selection using XPS for Rx queues

2018-06-27 Thread Amritha Nambiar
T_MAX. - Similarly clean sk_rx_queue_mapping set and get functions. - Use ns_capable in place of capable(), reorganize/properly free pointer in xps_rxqs_show. - Add a note in documentation not validating transmit device against receive device to avoid expensive lookup in datapath. --- Amritha Nambi

[net-next PATCH v4 7/7] Documentation: Add explanation for XPS using Rx-queue(s) map

2018-06-25 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar --- Documentation/ABI/testing/sysfs-class-net-queues | 11 Documentation/networking/scaling.txt | 57 ++ 2 files changed, 58 insertions(+), 10 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-net-queues b

[net-next PATCH v4 6/7] net-sysfs: Add interface for Rx queue(s) map per Tx queue

2018-06-25 Thread Amritha Nambiar
Extend transmit queue sysfs attribute to configure Rx queue(s) map per Tx queue. By default no receive queues are configured for the Tx queue. - /sys/class/net/eth0/queues/tx-*/xps_rxqs Signed-off-by: Amritha Nambiar --- net/core/net-sysfs.c | 81

[net-next PATCH v4 4/7] net: Record receive queue number for a connection

2018-06-25 Thread Amritha Nambiar
. Rx queue is also marked in tcp_conn_request() to allow syn-ack to go on the right tx-queue associated with the queue on which syn is received. Signed-off-by: Amritha Nambiar Signed-off-by: Sridhar Samudrala --- include/net/busy_poll.h |1 + include/net/sock.h | 14 ++

[net-next PATCH v4 5/7] net: Enable Tx queue selection based on Rx queues

2018-06-25 Thread Amritha Nambiar
hashing. Signed-off-by: Amritha Nambiar --- include/net/sock.h |4 +++ net/core/dev.c | 62 ++-- 2 files changed, 49 insertions(+), 17 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index 0ff4416..cb18139 100644 --- a

[net-next PATCH v4 0/7] Symmetric queue selection using XPS for Rx queues

2018-06-25 Thread Amritha Nambiar
ation) --- Amritha Nambiar (7): net: Refactor XPS for CPUs and Rx queues net: Use static_key for XPS maps net: sock: Change tx_queue_mapping in sock_common to unsigned short net: Record receive queue number for a connection net: Enable Tx queue selection based on Rx q

[net-next PATCH v4 3/7] net: sock: Change tx_queue_mapping in sock_common to unsigned short

2018-06-25 Thread Amritha Nambiar
new 'unsigned short' field in sock_common in the next patch for rx_queue_mapping. Signed-off-by: Amritha Nambiar --- include/net/sock.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index b3b7541..009fd30 100644 --

[net-next PATCH v4 1/7] net: Refactor XPS for CPUs and Rx queues

2018-06-25 Thread Amritha Nambiar
Refactor XPS code to support Tx queue selection based on CPU(s) map or Rx queue(s) map. Signed-off-by: Amritha Nambiar --- include/linux/cpumask.h | 11 ++ include/linux/netdevice.h | 100 + net/core/dev.c| 211

[net-next PATCH v4 2/7] net: Use static_key for XPS maps

2018-06-25 Thread Amritha Nambiar
Use static_key for XPS maps to reduce the cost of extra map checks, similar to how it is used for RPS and RFS. This includes static_key 'xps_needed' for XPS and another for 'xps_rxqs_needed' for XPS using Rx queues map. Signed-off-by: Amritha Nambiar --- n

[net-next PATCH v3 5/5] Documentation: Add explanation for XPS using Rx-queue(s) map

2018-06-05 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar --- Documentation/ABI/testing/sysfs-class-net-queues | 11 Documentation/networking/scaling.txt | 58 ++ 2 files changed, 59 insertions(+), 10 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-net-queues b

[net-next PATCH v3 0/5] Symmetric queue selection using XPS for Rx queues

2018-06-05 Thread Amritha Nambiar
ueues --- Amritha Nambiar (5): net: Refactor XPS for CPUs and Rx queues net: Use static_key for XPS maps net: Enable Tx queue selection based on Rx queues net-sysfs: Add interface for Rx queue(s) map per Tx queue Documentation: Add explanation for XPS using Rx-queue(s

[net-next PATCH v3 3/5] net: Enable Tx queue selection based on Rx queues

2018-06-05 Thread Amritha Nambiar
hashing. Signed-off-by: Amritha Nambiar Signed-off-by: Sridhar Samudrala --- include/net/busy_poll.h |3 ++ include/net/sock.h | 14 +++ net/core/dev.c | 60 --- net/core/sock.c |4 +++ net/ipv4/tcp_input.c

[net-next PATCH v3 1/5] net: Refactor XPS for CPUs and Rx queues

2018-06-05 Thread Amritha Nambiar
Refactor XPS code to support Tx queue selection based on CPU(s) map or Rx queue(s) map. Signed-off-by: Amritha Nambiar --- include/linux/cpumask.h | 11 ++ include/linux/netdevice.h | 73 ++ net/core/dev.c| 228 ++--- net

[net-next PATCH v3 4/5] net-sysfs: Add interface for Rx queue(s) map per Tx queue

2018-06-05 Thread Amritha Nambiar
Extend transmit queue sysfs attribute to configure Rx queue(s) map per Tx queue. By default no receive queues are configured for the Tx queue. - /sys/class/net/eth0/queues/tx-*/xps_rxqs Signed-off-by: Amritha Nambiar --- net/core/net-sysfs.c | 81

[net-next PATCH v3 2/5] net: Use static_key for XPS maps

2018-06-05 Thread Amritha Nambiar
Use static_key for XPS maps to reduce the cost of extra map checks, similar to how it is used for RPS and RFS. Signed-off-by: Amritha Nambiar --- net/core/dev.c |8 1 file changed, 8 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 156acbe..bba755f 100644 --- a/net

[net PATCH] net: Fix a bug in removing queues from XPS map

2018-05-17 Thread Amritha Nambiar
While removing queues from the XPS map, the individual CPU ID alone was used to index the CPUs map, this should be changed to also factor in the traffic class mapping for the CPU-to-queue lookup. Fixes: 184c449f91fe ("net: Add support for XPS with QoS via traffic classes") Signed-off-b

[net-next PATCH v2 4/4] Documentation: Add explanation for XPS using Rx-queue map

2018-05-15 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar --- Documentation/networking/scaling.txt | 58 -- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/Documentation/networking/scaling.txt b/Documentation/networking/scaling.txt index f55639d..834147c 100644 --- a

[net-next PATCH v2 0/4] Symmetric queue selection using XPS for Rx queues

2018-05-15 Thread Amritha Nambiar
on in networking/scaling.txt - Added a simple routine to replace multiple ifdef blocks. --- Amritha Nambiar (4): net: Refactor XPS for CPUs and Rx queues net: Enable Tx queue selection based on Rx queues net-sysfs: Add interface for Rx queue map per Tx queue Documentation

[net-next PATCH v2 1/4] net: Refactor XPS for CPUs and Rx queues

2018-05-15 Thread Amritha Nambiar
Refactor XPS code to support Tx queue selection based on CPU map or Rx queue map. Signed-off-by: Amritha Nambiar --- include/linux/cpumask.h | 11 ++ include/linux/netdevice.h | 72 +++- net/core/dev.c| 208 + net/core

[net-next PATCH v2 3/4] net-sysfs: Add interface for Rx queue map per Tx queue

2018-05-15 Thread Amritha Nambiar
Extend transmit queue sysfs attribute to configure Rx queue map per Tx queue. By default no receive queues are configured for the Tx queue. - /sys/class/net/eth0/queues/tx-*/xps_rxqs Signed-off-by: Amritha Nambiar --- net/core/net-sysfs.c | 81

[net-next PATCH v2 2/4] net: Enable Tx queue selection based on Rx queues

2018-05-15 Thread Amritha Nambiar
. Signed-off-by: Amritha Nambiar Signed-off-by: Sridhar Samudrala --- include/net/sock.h | 18 ++ net/core/dev.c | 36 +--- net/core/sock.c |5 + net/ipv4/tcp_input.c |7 +++ net/ipv4/tcp_ipv4.c

[net-next PATCH 1/3] net: Refactor XPS for CPUs and Rx queues

2018-04-19 Thread Amritha Nambiar
Refactor XPS code to support Tx queue selection based on CPU map or Rx queue map. Signed-off-by: Amritha Nambiar --- include/linux/netdevice.h | 82 +- net/core/dev.c| 206 + net/core/net-sysfs.c |4 - 3 files

[net-next PATCH 3/3] net-sysfs: Add interface for Rx queue map per Tx queue

2018-04-19 Thread Amritha Nambiar
Extend transmit queue sysfs attribute to configure Rx queue map per Tx queue. By default no receive queues are configured for the Tx queue. - /sys/class/net/eth0/queues/tx-*/xps_rxqs Signed-off-by: Amritha Nambiar --- net/core/net-sysfs.c | 81

[net-next PATCH 0/3] Symmetric queue selection using XPS for Rx queues

2018-04-19 Thread Amritha Nambiar
Tx-Rx queue pair as this is useful for busy polling multi-threaded workloads where it is not possible to pin the threads to a CPU. This is a rework of Sridhar's patch for symmetric queueing via socket option: https://www.spinics.net/lists/netdev/msg453106.html --- Amritha Nambiar (3):

[net-next PATCH 2/3] net: Enable Tx queue selection based on Rx queues

2018-04-19 Thread Amritha Nambiar
. Signed-off-by: Amritha Nambiar Signed-off-by: Sridhar Samudrala --- include/net/sock.h | 18 ++ net/core/dev.c | 36 +--- net/core/sock.c |5 + net/ipv4/tcp_input.c |7 +++ net/ipv4/tcp_ipv4.c

[jkirsher/next-queue, RFC PATCH 3/3] net-sysfs: Add interface for Rx queue map per Tx queue

2018-04-04 Thread Amritha Nambiar
Extend transmit queue sysfs attribute to configure Rx queue map per Tx queue. By default no receive queues are configured for the Tx queue. - /sys/class/net/eth0/queues/tx-*/xps_rxqs Signed-off-by: Amritha Nambiar --- net/core/net-sysfs.c | 81

[jkirsher/next-queue, RFC PATCH 0/3] Symmetric queue selection using XPS for Rx queues

2018-04-04 Thread Amritha Nambiar
Tx-Rx queue pair as this is useful for busy polling multi-threaded workloads where it is not possible to pin the threads to a CPU. This is a rework of Sridhar's patch for symmetric queueing via socket option: https://www.spinics.net/lists/netdev/msg453106.html --- Amritha Nambiar (3):

[jkirsher/next-queue, RFC PATCH 2/3] net: Enable Tx queue selection based on Rx queues

2018-04-04 Thread Amritha Nambiar
. Signed-off-by: Amritha Nambiar Signed-off-by: Sridhar Samudrala --- include/net/sock.h | 18 ++ net/core/dev.c | 36 ++-- net/core/sock.c |5 + net/ipv4/tcp_input.c |7 +++ net/ipv4/tcp_ipv4.c

[jkirsher/next-queue, RFC PATCH 1/3] net: Refactor XPS for CPUs and Rx queues

2018-04-04 Thread Amritha Nambiar
Refactor XPS code to support Tx queue selection based on CPU map or Rx queue map. Signed-off-by: Amritha Nambiar --- include/linux/netdevice.h | 82 +- net/core/dev.c| 208 ++--- net/core/net-sysfs.c |4 - 3 files

[iproute2 PATCH] man: tc-flower: add explanation for hw_tc option

2017-11-17 Thread Amritha Nambiar
Add details explaining the hw_tc option. Signed-off-by: Amritha Nambiar --- man/man8/tc-flower.8 |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8 index be46f02..fd9098e 100644 --- a/man/man8/tc-flower.8 +++ b/man/man8/tc

[iproute2 PATCH] man: tc-mqprio: add documentation for new offload options

2017-11-17 Thread Amritha Nambiar
This patch adds documentation for additional offload modes and associated parameters in tc-mqprio. Signed-off-by: Amritha Nambiar --- man/man8/tc-mqprio.8 | 60 +- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/man/man8/tc

[iproute2 PATCH] flower: Represent HW traffic classes as classid values

2017-11-03 Thread Amritha Nambiar
flower chain 0 handle 0x1 hw_tc 1 eth_type ipv4 ip_proto udp dst_ip 192.168.1.1 dst_port 12000 skip_sw in_hw Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_sched.h |1 + tc/f_flower.c | 33 + 2 files changed, 30

[iproute2 PATCH v2] tc/mqprio: Offload mode and shaper options in mqprio

2017-11-01 Thread Amritha Nambiar
bit # tc qdisc show dev eth0 qdisc mqprio 804a: root tc 2 map 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 queues:(0:3) (4:7) mode:channel shaper:bw_rlimit min_rate:1Gbit 2Gbit max_rate:4Gbit 5Gbit v2: Avoid buffer overrun and minor cleanup. Signed-

[iproute2, RFC PATCH] flower: Represent HW traffic classes as classid values

2017-10-27 Thread Amritha Nambiar
filter show dev eth0 parent : filter pref 1 flower chain 0 filter pref 1 flower chain 0 handle 0x1 hw_tc 1 eth_type ipv4 ip_proto udp dst_ip 192.168.1.1 dst_port 12000 skip_sw in_hw Signed-off-by: Amritha Nambiar --- include/uapi/linux/pkt_sched.h |1 + tc/f_flower.c

[jkirsher/next-queue PATCH v5 5/6] i40e: Clean up of cloud filters

2017-10-27 Thread Amritha Nambiar
Introduce the cloud filter datastructure and cleanup of cloud filters associated with the device. v5: Fixed a typo. v2: Moved field comments in struct i40e_cloud_filter to the right. Removed hlist_empty check from i40e_cloud_filter_exit() Signed-off-by: Amritha Nambiar --- drivers/net/ethernet

[jkirsher/next-queue PATCH v5 6/6] i40e: Enable cloud filters via tc-flower

2017-10-27 Thread Amritha Nambiar
buffer AQ function definitions. 7. Cleaned up setup_tc interface to rebase and work with Jiri's updates, separate function to process tc cls flower offloads. 8. Changes to make Flow Director Sideband and Cloud filters mutually exclusive. Signed-off-by: Amritha Nambiar Signed-off-by: Kira

[jkirsher/next-queue PATCH v5 3/6] i40e: Cloud filter mode for set_switch_config command

2017-10-27 Thread Amritha Nambiar
Add definitions for L4 filters and switch modes based on cloud filters modes and extend the set switch config command to include the additional cloud filter mode. v5: Addressed Shannon's comments to format ':'s and changed names to I40E_CLOUD_FILTER_MODEx Signed-off-by: Amritha

[jkirsher/next-queue PATCH v5 4/6] i40e: Admin queue definitions for cloud filters

2017-10-27 Thread Amritha Nambiar
Added I40E_CHECK_STRUCT_LEN check to AQ command structs and added AQ definitions to i40evf for consistency based on Shannon's feedback. Signed-off-by: Amritha Nambiar Signed-off-by: Kiran Patil Signed-off-by: Jingjing Wu --- drivers/net/ethernet/intel/i40e/i40e_adminq_cmd

[jkirsher/next-queue PATCH v5 1/6] net: sched: Identify hardware traffic classes using classid

2017-10-27 Thread Amritha Nambiar
. A new helper function is introduced to represent HW traffic classes 0 through 15 using the reserved classid values :ffe0 - :ffef. v5: Added helper function to get HW TC values from classid. Signed-off-by: Amritha Nambiar --- include/net/pkt_cls.h |1 + include/net/sch_generic.h |

[jkirsher/next-queue PATCH v5 2/6] i40e: Map TCs with the VSI seids

2017-10-27 Thread Amritha Nambiar
Add mapping of TCs with the seids of the channel VSIs. TC0 will be mapped to the main VSI seid and all other TCs are mapped to the seid of the corresponding channel VSI. Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel/i40e/i40e.h |1 + drivers/net/ethernet/intel/i40e

[jkirsher/next-queue PATCH v5 0/6] tc-flower based cloud filters in i40e

2017-10-27 Thread Amritha Nambiar
chain 0 handle 0x1 hw_tc 1 eth_type ipv4 ip_proto udp dst_ip 192.168.1.1 dst_port 12000 skip_sw in_hw v5: Hardware traffic class based on reserved classid values. Changes to align with Jiri's filter-block series. i40e code cleanup based on Shannon's comments. Authors: Amrit

[iproute2 PATCH] tc/mqprio: Offload mode and shaper options in mqprio

2017-10-26 Thread Amritha Nambiar
bit # tc qdisc show dev eth0 qdisc mqprio 804a: root tc 2 map 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 queues:(0:3) (4:7) mode:channel shaper:bw_rlimit min_rate:1Gbit 2Gbit max_rate:4Gbit 5Gbit Signed-off-by: Amritha Nambiar

[jkirsher/next-queue PATCH v4 4/6] i40e: Admin queue definitions for cloud filters

2017-10-10 Thread Amritha Nambiar
for consistency based on Shannon's feedback. Signed-off-by: Amritha Nambiar Signed-off-by: Kiran Patil Signed-off-by: Jingjing Wu --- drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 110 .../net/ethernet/intel/i40evf/i40e_adminq_cmd.h| 110 ++

[jkirsher/next-queue PATCH v4 3/6] i40e: Cloud filter mode for set_switch_config command

2017-10-10 Thread Amritha Nambiar
Add definitions for L4 filters and switch modes based on cloud filters modes and extend the set switch config command to include the additional cloud filter mode. Signed-off-by: Amritha Nambiar Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 30

[jkirsher/next-queue PATCH v4 1/6] cls_flower: Offload classid to hardware

2017-10-10 Thread Amritha Nambiar
The classid on a filter is used to match a packet to a class. tcf_result structure contains the class ID of the class to which the packet belongs. This patch enables offloading the classid to the hardware. Signed-off-by: Amritha Nambiar --- include/net/pkt_cls.h |1 + net/sched

[jkirsher/next-queue PATCH v4 0/6] tc-flower based cloud filters in i40e

2017-10-10 Thread Amritha Nambiar
_proto udp dst_ip 192.168.1.1 dst_port 22 skip_sw in_hw v4: classid based approach to set traffic class for matched packets. Authors: Amritha Nambiar Kiran Patil Anjali Singhai Jain Jingjing Wu --- Amritha Nambiar (6): cls_flower: Offload classid to hardware i40e: Map TCs wi

[jkirsher/next-queue PATCH v4 5/6] i40e: Clean up of cloud filters

2017-10-10 Thread Amritha Nambiar
Introduce the cloud filter datastructure and cleanup of cloud filters associated with the device. v2: Moved field comments in struct i40e_cloud_filter to the right. Removed hlist_empty check from i40e_cloud_filter_exit() Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel/i40e/i40e.h

[jkirsher/next-queue PATCH v4 6/6] i40e: Enable cloud filters via tc-flower

2017-10-10 Thread Amritha Nambiar
x in cloud filter big buffer AQ function definitions. 7. Cleaned up setup_tc interface to rebase and work with Jiri's updates, separate function to process tc cls flower offloads. 8. Changes to make Flow Director Sideband and Cloud filters mutually exclusive. Signed-off-by: Amritha Nambiar

[jkirsher/next-queue PATCH v4 2/6] i40e: Map TCs with the VSI seids

2017-10-10 Thread Amritha Nambiar
Add mapping of TCs with the seids of the channel VSIs. TC0 will be mapped to the main VSI seid and all other TCs are mapped to the seid of the corresponding channel VSI. Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel/i40e/i40e.h |1 + drivers/net/ethernet/intel/i40e

[iproute2 PATCH] tc/mirred: Clean up white-space noise

2017-09-13 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar --- include/linux/tc_act/tc_mirred.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/tc_act/tc_mirred.h b/include/linux/tc_act/tc_mirred.h index 3d7a2b3..69038c2 100644 --- a/include/linux/tc_act/tc_mirred.h +++ b/include

[RFC PATCH v3 3/7] i40e: Map TCs with the VSI seids

2017-09-13 Thread Amritha Nambiar
Add mapping of TCs with the seids of the channel VSIs. TC0 will be mapped to the main VSI seid and all other TCs are mapped to the seid of the corresponding channel VSI. Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel/i40e/i40e.h |1 + drivers/net/ethernet/intel/i40e

[RFC PATCH v3 0/7] tc-flower based cloud filters in i40e

2017-09-13 Thread Amritha Nambiar
ipv6 address. Used macro for IP version. Minor formatting changes. --- Amritha Nambiar (7): tc_mirred: Clean up white-space noise sched: act_mirred: Traffic class option for mirror/redirect action i40e: Map TCs with the VSI seids i40e: Cloud filter mode for set_switch_config

[RFC PATCH v3 7/7] i40e: Enable cloud filters via tc-flower

2017-09-13 Thread Amritha Nambiar
ss tc cls flower offloads. 8. Changes to make Flow Director Sideband and Cloud filters mutually exclusive. Signed-off-by: Amritha Nambiar Signed-off-by: Kiran Patil Signed-off-by: Anjali Singhai Jain Signed-off-by: Jingjing Wu --- drivers/net/ethernet/intel/i40e/i40e.h | 49 + dr

[RFC PATCH v3 1/7] tc_mirred: Clean up white-space noise

2017-09-13 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar --- include/uapi/linux/tc_act/tc_mirred.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/uapi/linux/tc_act/tc_mirred.h b/include/uapi/linux/tc_act/tc_mirred.h index 3d7a2b3..69038c2 100644 --- a/include/uapi/linux/tc_act

[RFC PATCH v3 6/7] i40e: Clean up of cloud filters

2017-09-13 Thread Amritha Nambiar
Introduce the cloud filter datastructure and cleanup of cloud filters associated with the device. v2: Moved field comments in struct i40e_cloud_filter to the right. Removed hlist_empty check from i40e_cloud_filter_exit() Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel/i40e/i40e.h

[RFC PATCH v3 4/7] i40e: Cloud filter mode for set_switch_config command

2017-09-13 Thread Amritha Nambiar
Add definitions for L4 filters and switch modes based on cloud filters modes and extend the set switch config command to include the additional cloud filter mode. Signed-off-by: Amritha Nambiar Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 30

[RFC PATCH v3 5/7] i40e: Admin queue definitions for cloud filters

2017-09-13 Thread Amritha Nambiar
for consistency based on Shannon's feedback. Signed-off-by: Amritha Nambiar Signed-off-by: Kiran Patil Signed-off-by: Jingjing Wu --- drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 110 .../net/ethernet/intel/i40evf/i40e_adminq_cmd.h| 110 ++

[RFC PATCH v3 2/7] sched: act_mirred: Traffic class option for mirror/redirect action

2017-09-13 Thread Amritha Nambiar
k and replaced their usages with existing defines in linux/netdevice.h. Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c |2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |2 +- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c|2 +- driver

[RFC, iproute2 PATCH v2] tc/mqprio: Offload mode and shaper options in mqprio

2017-09-07 Thread Amritha Nambiar
@0 4@4 hw 1 mode channel shaper bw_rlimit\ min_rate 1Gbit 2Gbit max_rate 4Gbit 5Gbit # tc qdisc show dev eth0 qdisc mqprio 804a: root tc 2 map 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 queues:(0:3) (4:7) mode:channel shaper:bw_rlimit min_rate:1Gbit 2Gbit max_

[RFC PATCH v3 6/6] i40e: Add support setting TC max bandwidth rates

2017-09-07 Thread Amritha Nambiar
v eth0 qdisc mqprio 804a: root tc 2 map 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 queues:(0:3) (4:7) mode:channel shaper:bw_rlimit max_rate:4Gbit 5Gbit Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel/i40e/i40e.h |2 + drivers/net/ethernet/in

[RFC PATCH v3 5/6] i40e: Refactor VF BW rate limiting

2017-09-07 Thread Amritha Nambiar
This patch refactors the BW rate limiting for Tx traffic on the VF to be reused in the next patch for rate limiting Tx traffic for the VSIs on the PF as well. v3: Minor fixes, clean up log messages based on Shannon's comments. Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel

[RFC PATCH v3 2/6] i40e: Add macro for PF reset bit

2017-09-07 Thread Amritha Nambiar
Introduce a macro for the bit setting the PF reset flag and update its usages. This makes it easier to use this flag in functions to be introduced in future without encountering checkpatch issues related to alignment and line over 80 characters. Signed-off-by: Amritha Nambiar --- drivers/net

[RFC PATCH v3 4/6] i40e: Enable 'channel' mode in mqprio for TC configs

2017-09-07 Thread Amritha Nambiar
data for the offload. No need to disable ATR in MQPRIO mode. Signed-off-by: Amritha Nambiar --- drivers/net/ethernet/intel/i40e/i40e.h |3 drivers/net/ethernet/intel/i40e/i40e_ethtool.c |8 drivers/net/ethernet/intel/i40e/i40e_main.c| 457 ++--

[RFC PATCH v3 3/6] i40e: Add infrastructure for queue channel support

2017-09-07 Thread Amritha Nambiar
igned-off-by: Amritha Nambiar Signed-off-by: Kiran Patil --- drivers/net/ethernet/intel/i40e/i40e.h | 32 + drivers/net/ethernet/intel/i40e/i40e_main.c | 718 +++ drivers/net/ethernet/intel/i40e/i40e_txrx.h |2 3 files changed, 743 insertions(+), 9 dele

[RFC PATCH v3 0/6] Configuring traffic classes via new hardware offload mechanism in tc/mqprio

2017-09-07 Thread Amritha Nambiar
rates: # tc qdisc show dev eth0 qdisc mqprio 804a: root tc 2 map 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 queues:(0:3) (4:7) mode:channel shaper:bw_rlimit min_rate:1Gbit 2Gbit max_rate:4Gbit 5Gbit --- Amritha Nambiar (6): mqprio: Intro

[RFC PATCH v3 1/6] mqprio: Introduce new hardware offload mode and shaper in mqprio

2017-09-07 Thread Amritha Nambiar
ion, introduced new netlink based options for offload mode and HW shaper. v2 : Jiri's changes accepted upstream removes the struct tc_to_netdev. Clean up the full offload related changes added to mqprio_init() and mqprio_destroy() to rebase on these changes. Signed-off-by: Amritha Nambi

  1   2   >