[RFC, iproute2 PATCH v2] tc/mirred: Extend the mirred/redirect action to accept additional traffic class parameter

2017-08-17 Thread Amritha Nambiar
\ skip_sw action mirred ingress redirect dev eth0 tclass 1 v2: Renamed the parameter 'tc' to 'tclass'. Replaced atoi with strtoul and used NEXT_ARG() construct. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- include/linux/tc_act/tc_mirred.h |3 +++ tc/m_mi

[RFC PATCH v2 3/6] [net-next]net: i40e: Extend set switch config command to accept cloud filter mode

2017-08-17 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 <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> ---

[RFC PATCH v2 4/6] [net-next]net: i40e: Admin queue definitions for cloud filters

2017-08-17 Thread Amritha Nambiar
feedback. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> Signed-off-by: Jingjing Wu <jingjing...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 108 .../net/ethernet/intel/i40evf

[RFC PATCH v2 1/6] [net-next]net: sched: act_mirred: Extend redirect action to accept a traffic class

2017-08-17 Thread Amritha Nambiar
/netdevice.h. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- 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 +- drivers/net/ethernet/mellanox/mlxsw/spec

[RFC PATCH v2 2/6] [net-next]net: i40e: Maintain a mapping of TCs with the VSI seids

2017-08-17 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 channel VSI. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |1 + drivers/net/et

[RFC PATCH v2 5/6] [net-next]net: i40e: Clean up of cloud filters

2017-08-17 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 <amritha.namb...@intel.com> --- drive

[RFC PATCH v2 0/6] Configure cloud filters in i40e via tc-flower classifier

2017-08-17 Thread Amritha Nambiar
handle 0x1 eth_type ipv4 ip_proto udp dst_ip 192.168.1.1 dst_port 22 skip_sw in_hw action order 1: mirred (Ingress Redirect to device eth0) stolen tclass 1 index 7 ref 1 bind 1 --- Amritha Nambiar (6): [net-next]net: sched: act_mirred: Extend redirect action to accept

[RFC PATCH v2 6/6] [net-next]net: i40e: Enable cloud filters in i40e via tc flower classifier

2017-08-17 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 <amritha.n

[PATCH 4/6] [next-queue]net: i40e: Enable mqprio full offload mode in the i40e driver for configuring TCs and queue mapping

2017-07-11 Thread Amritha Nambiar
queues are configured via mqprio. Example: # tc qdisc add dev eth0 root mqprio num_tc 4\ map 0 0 0 1 0 2 3 0 queues 2@0 4@2 8@6 11@14 hw 2 # ethtool -X eth0 equal 12 Cannot set RX flow hash configuration: Invalid argument Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- drive

[PATCH 5/6] [next-queue]net: i40e: Refactor VF BW rate limiting function to be reused on the PF as well

2017-07-11 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. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |5 ++ drive

[PATCH 3/6] [next-queue]net: i40e: Add infrastructure for queue channel support with the TCs and queue configurations offloaded via mqprio scheduler

2017-07-11 Thread Amritha Nambiar
created are removed and all the queue configuration is set to default when the qdisc is detached from the root of the device. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h | 3

[PATCH 1/6] [next-queue]net: mqprio: Introduce new hardware offload mode in mqprio for offloading full TC configurations

2017-07-11 Thread Amritha Nambiar
:0bit 0bit max rates:55Mbit 60Mbit Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- include/linux/netdevice.h |2 include/net/pkt_cls.h |7 ++ include/uapi/linux/pkt_sched.h | 13 +++ net/sched/sch_mqprio.c | 170 +++

[PATCH 2/6] [next-queue]net: i40e: Add macro for PF reset bit

2017-07-11 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 <amritha.n

[PATCH 6/6] [next-queue]net: i40e: Add support to set max bandwidth rates for TCs offloaded via tc/mqprio

2017-07-11 Thread Amritha Nambiar
) min rates:0bit 0bit max rates:55Mbit 60Mbit Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |2 + drivers/net/ethernet/intel/i40e/i40e_main.c | 99 +-- 2 files changed, 92 insertions

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

2017-07-11 Thread Amritha Nambiar
t max_rate 55Mbit 60Mbit hw 2 To dump the bandwidth 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) min rates:0bit 0bit max rates:55Mbit 60Mbit --- Amritha Nambiar (6): [next

[PATCH RFC, iproute2] tc/mqprio: Add support to configure bandwidth rate limit through mqprio

2017-07-14 Thread Amritha Nambiar
0 0 0 0 0 0 0 0 queues:(0:3) (4:7) min rates:0bit 0bit max rates:55Mbit 60Mbit Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- include/linux/pkt_sched.h | 12 tc/q_mqprio.c

[PATCH net-next RFC 0/6] Configure cloud filters in i40e via tc/flower classifier

2017-07-31 Thread Amritha Nambiar
indev eth0 eth_type ipv4 ip_proto udp dst_ip 192.168.1.1 dst_port 22 skip_sw in_hw action order 1: mirred (Ingress Redirect to device eth0) stolen tc 1 index 1 ref 1 bind 1 --- Amritha Nambiar (6): [net-next]net: sched: act_mirred: Extend redirect action to accept

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

2017-07-31 Thread Amritha Nambiar
Add new admin queue definitions and extended fields for cloud filter support. Define big buffer for extended general fields in Add/Remove Cloud filters command. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> Signed-off-by:

[PATCH 6/6] [net-next]net: i40e: Enable cloud filters in i40e via tc/flower classifier

2017-07-31 Thread Amritha Nambiar
to the main VSI (tc 0) which does not require the enhanced big buffer cloud filter support. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h | 46 + drivers/net/etherne

[PATCH 3/6] [net-next]net: i40e: Extend set switch config command to accept cloud filter mode

2017-07-31 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 <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> ---

[PATCH 2/6] [net-next]net: i40e: Maintain a mapping of TCs with the VSI seids

2017-07-31 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 channel VSI. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |1 + drivers/net/et

[PATCH 1/6] [net-next]net: sched: act_mirred: Extend redirect action to accept a traffic class

2017-07-31 Thread Amritha Nambiar
\ skip_sw indev eth0 action mirred ingress redirect dev eth0 tc 1 Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- include/net/tc_act/tc_mirred.h|7 +++ include/uapi/linux/tc_act/tc_mirred.h |5 + net/sched/act_mirred.c| 17 ++

[PATCH 5/6] [net-next]net: i40e: Clean up of cloud filters

2017-07-31 Thread Amritha Nambiar
Introduce the cloud filter datastructure and cleanup of cloud filters associated with the device. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h | 11 +++ drivers/net/ethernet/intel/i40e/i40e_main.c

[PATCH RFC, iproute2] tc/mirred: Extend the mirred/redirect action to accept additional traffic class parameter

2017-07-31 Thread Amritha Nambiar
\ indev eth0 action mirred ingress redirect dev eth0 tc 1 Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- tc/m_mirred.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/include/linux/tc_act/tc_mirred.h b/include/linux/tc_act/tc_mi

[PATCH 1/4] [next-queue]net: mqprio: Introduce new hardware offload mode in mqprio for offloading full TC configurations

2017-05-19 Thread Amritha Nambiar
:0bit 0bit max rates:55Mbit 60Mbit Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- include/linux/netdevice.h |2 include/net/pkt_cls.h |7 ++ include/uapi/linux/pkt_sched.h | 13 +++ net/sched/sch_mqprio.c | 169 +++

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

2017-05-19 Thread Amritha Nambiar
2 map 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 queues:(0:3) (4:7) min rates:0bit 0bit max rates:55Mbit 60Mbit --- Amritha Nambiar (4): [next-queue]net: mqprio: Introduce new hardware offload mode in mqprio for offloading full TC configurations

[PATCH 3/4] [next-queue]net: i40e: Enable mqprio full offload mode in the i40e driver for configuring TCs and queue mapping

2017-05-19 Thread Amritha Nambiar
the queue configuration is set to default when the qdisc is detached from the root of the device. #tc qdisc del dev eth0 root This patch also disables setting up channels via ethtool (ethtool -L) when the TCs are confgured using mqprio scheduler. Signed-off-by: Amritha Nambiar <amritha.n

[PATCH 2/4] [next-queue]net: i40e: Add infrastructure for queue channel support with the TCs and queue configurations offloaded via mqprio scheduler

2017-05-19 Thread Amritha Nambiar
created are removed and all the queue configuration is set to default when the qdisc is detached from the root of the device. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h | 3

[PATCH 4/4] [next-queue]net: i40e: Add support to set max bandwidth rates for TCs offloaded via tc/mqprio

2017-05-19 Thread Amritha Nambiar
) min rates:0bit 0bit max rates:55Mbit 60Mbit Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |2 + drivers/net/ethernet/intel/i40e/i40e_m

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

2017-09-07 Thread Amritha Nambiar
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 <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |2 + drive

[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 <amritha.n

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

2017-09-07 Thread Amritha Nambiar
. No need to disable ATR in MQPRIO mode. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- 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
-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h | 32 + drivers/net/ethernet/intel/i40e/i40e_main.c | 718 +++ drivers/net/ethernet/intel/i40e/i40e_txrx.

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

2017-09-07 Thread Amritha Nambiar
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 Nambiar <amritha.namb...@intel.com> --- include/net/pkt_cls.h |9 ++ include/uapi/linux/pkt_sched.h | 32 +++ net/sched/sch_mq

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

2017-09-07 Thread Amritha Nambiar
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: Introduce new hardware offload mode and shaper in mqprio i40e: Add macro for PF

[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 <amritha.namb...@intel.

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

2017-09-07 Thread Amritha Nambiar
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_rate:4Gbit 5Gbit Signed-off-by: Amritha Nambiar <amritha.namb...@intel.

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

2017-09-13 Thread Amritha Nambiar
cls flower offloads. 8. Changes to make Flow Director Sideband and Cloud filters mutually exclusive. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> Signed-off-by: Anjali Singhai Jain <anjali.sing...@intel.com> Signe

[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 <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |1 + d

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

2017-09-13 Thread Amritha Nambiar
for 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 2/7] sched: act_mirred: Traffic class option for mirror/redirect action

2017-09-13 Thread Amritha Nambiar
and replaced their usages with existing defines in linux/netdevice.h. Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c |2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |2 +- drivers/net/ethernet/mellanox/mlx

[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 <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> ---

[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 <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> Signed-off-by: Jingjing Wu <jingjing...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 110 +++

[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 <amritha.namb...@intel.com> --- drive

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

2017-09-13 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- 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

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

2017-09-13 Thread Amritha Nambiar
Signed-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- 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/

[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 <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |1 + d

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

2017-10-10 Thread Amritha Nambiar
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 <amritha.n

[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 <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> Signed-off-by: Jingjing Wu <jingjing...@intel.com> --- drivers/net/ethernet/intel/i40e/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 <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> ---

[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 <amritha.namb...@intel.com> --- include/net/pkt

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

2017-10-10 Thread Amritha Nambiar
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 <amritha.namb...@intel.com> Kiran Patil <kiran.pa...@intel.com> Anjali Singhai Jain <anjali.sing...@intel.com> Jingjing Wu <

[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 <amritha.namb...@intel.com> --- drive

[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 <amritha.namb...@intel.com> --- 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/m

[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 <amritha.namb...@intel.com> --- man/man8/tc-mqprio.8 | 60 +- 1 file changed, 49 insertions(+), 11 del

[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 <amritha.namb...@intel.com> --- include/uapi/linux/pkt_sched.h |1 + tc/f_flower.c | 33 +-

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

2017-11-01 Thread Amritha Nambiar
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-off-by: Amritha Nambiar <amritha.namb...@intel.com> --- include/uapi/linux/pkt_sched.h | 32 +

[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 <amritha.namb...@intel.com> --- 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 f

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

2018-05-15 Thread Amritha Nambiar
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: Add

[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 <amritha.namb...@intel.com> --- include/linux/cpumask.h | 11 ++ include/linux/netdevice.h | 72 +++- net/core/dev.c

[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 <amritha.namb...@intel.com> --- net/core/net-sysfs.c

[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 <amritha.namb...@intel.com> Signed-off-by: Sridhar Samudrala <sridhar.samudr...@intel.com> --- include/net/sock.h | 18 ++ net/core/dev.c | 36 +--- net/core/sock.c |5 +++

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

2018-06-05 Thread Amritha Nambiar
--- 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) map

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

2018-06-05 Thread Amritha Nambiar
to 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 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 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-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 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 --- net/core/dev.c | 26

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

2018-06-25 Thread Amritha Nambiar
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/core

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

2018-06-25 Thread Amritha Nambiar
to 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

[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 0/7] Symmetric queue selection using XPS for Rx queues

2018-06-25 Thread Amritha Nambiar
) --- 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 queues

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

2018-06-25 Thread Amritha Nambiar
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 --- a/include/net/sock.h +++ b/include/net

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

[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
-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.h @@ -214,7 +214,7 @@ struct sock_common

[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
to 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 4/7] net: Record receive queue number for a connection

2018-06-30 Thread Amritha Nambiar
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 | 28

[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 --- net/core/dev.c | 31

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

2017-10-26 Thread Amritha Nambiar
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 <amritha.namb...@intel.com> --- include/uapi/linux/pkt_sched.h | 32 +++ tc/q_mqprio.c

[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: Amritha Nambiar

[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 <amritha.namb...@intel.com> --- include/uapi/linux/pkt_sched.h

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

2017-10-27 Thread Amritha Nambiar
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 <amritha.namb...@intel.com> Signed-off-by: Kiran Patil <kiran.pa...@intel.com> Signed-off-by: Jingjing Wu <jingji

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

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

2017-10-27 Thread Amritha Nambiar
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 <amritha.namb...@intel.com>

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

2017-10-27 Thread Amritha Nambiar
ter. 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 <amritha.namb...@intel.com> --- include/net/pkt_cls.h |1 +

[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 <amritha.namb...@intel.

[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 <amritha.namb...@intel.com> --- drivers/net/ethernet/intel/i40e/i40e.h |1 + d

[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 <amritha.namb...@intel.com> Signed-off-by: Sridhar Samudrala <sridhar.samudr...@intel.com> --- include/net/sock.h | 18 ++ net/core/dev.c | 36 ++-- net/core/sock.c |5 +++

[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 <amritha.namb...@intel.com> --- include/linux/netdevice.h | 82 +- net/core/dev.c| 208 ++--- net/co

[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 <amritha.namb...@intel.com> --- net/core/net-sysfs.c

[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): net

[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 <amritha.namb...@intel.com> --- include/linux/netdevice.h | 82 +- net/core/dev.c| 206 + net/co

[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

  1   2   >