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):
.
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
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
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
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 +-
drivers/net/ethernet/mellanox/mlxsw/spectrum.c |3 ++-
..
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
---
drivers/net/ethernet/intel/i40e/i40e.h |1 +
drivers/net/ethernet/intel/i40e/i40e_main.c |2
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
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
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 | 31
x27;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 | 108
.../net/ethernet/intel/i40evf/i40e_adminq_cmd.h| 108
2 files changed, 214 insertions(
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:
rt 22\
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
---
include/linux/tc_act/tc_mirred.h |3 +++
tc/m_mirred.c
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
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
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
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 ++
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
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
_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
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
---
n
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
--
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
. 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 ++
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
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
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
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
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
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
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
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.
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
. 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 ++
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
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
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.
. 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
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
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
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
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
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
.
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
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):
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
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
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
, 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
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
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
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
.
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
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
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.
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
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
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
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
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_
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(-)
)
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
)
min rates:0bit 0bit
max rates:55Mbit 60Mbit
Signed-off-by: Amritha Nambiar
---
drivers/net/ethernet/intel/i40e/i40e.h |2 +
drivers/net/ethernet/intel/i40e/i40e_main.c | 99 +--
2 files changed, 92 insertions(+), 9 deletions(-)
diff --git a
0Mbit 0Mbit 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):
ernel when 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
---
drivers/net/ethernet/intel/i
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
---
drivers/net/ethernet/intel/i40e/i40e.h |5 ++
drivers/net/ethernet/intel/i40e
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
Signed-off-by: Kiran Patil
---
drivers/net/ethernet/intel/i40e/i40e.h | 33 +
drivers/net/ethernet/intel/i40e/i40e_main.c | 747
min rates:0bit 0bit
max rates:55Mbit 60Mbit
Signed-off-by: Amritha Nambiar
---
include/linux/netdevice.h |2
include/net/pkt_cls.h |7 ++
include/uapi/linux/pkt_sched.h | 13 +++
net/sched/sch_mqprio.c | 170 +---
4 files cha
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
Signed-off-by: Amritha Nambiar
---
include/linux/pkt_sched.h | 12
tc/q_mqprio.c | 128 ++---
2 files ch
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
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
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
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 ++--
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
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
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
@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_
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
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
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 ++
1 - 100 of 129 matches
Mail list logo