\
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
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>
---
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
/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
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
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
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
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
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
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
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
: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 +++
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
)
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
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
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
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
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:
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
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>
---
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
\
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 ++
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
\
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
: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 +++
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
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
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
)
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
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
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
.
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 ++---
-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.
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
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
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.
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.
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
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
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
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
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>
---
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 +++
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
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
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/
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
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
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 +++
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>
---
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
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 <
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
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
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
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 +-
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 +
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
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
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
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
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
.
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 +++
---
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
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
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
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
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
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
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
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
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
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
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
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
)
---
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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>
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 +
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.
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
.
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 +++
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
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
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
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
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 - 100 of 125 matches
Mail list logo