Commit Graph

34 Commits

Author SHA1 Message Date
wangling94
68cf136ebe 1. filter match support vlanId and srcMac, dstMac.
2. filter action support vlan pop/push.
2025-01-16 11:56:41 -08:00
Byoungchan Lee
6765a4402e Add support for TCA_NETEM_RATE64 in Netem qdisc
- `Rate64` field added to the `Netem` struct in `qdisc.go`
- Implemented serialization and deserialization methods for `Rate64`
- Modify `TestClassAddDel` test to validate Rate64 changes
2024-03-31 17:34:55 -07:00
liuhao.0912
0ced838538 enable rule statistic and time statistic for flower actions 2023-11-27 10:42:39 -08:00
tc
004274e828 add tc flower pedit action
add pedit action in tc flower to support installing netlink hardware offload rules

authored-by: tangchen <tangchen.1@bytedance.com>
2023-11-27 10:36:18 -08:00
Ivan Kolodyazhny
130828cd57 Add Flower ip_proto attribute support 2023-02-06 10:37:46 -08:00
Ivan Kolodyazhny
05506ada9f Implement filter goto action support 2023-01-30 09:12:08 -08:00
Ivan Kolodyazhny
e20cb98f77 Support skip_hw/skip_sw flags
This feature could not be tested with virtual interfaces that's why
unit-tests aren't added into this change.
2022-12-14 08:41:50 -08:00
Ivan Kolodyazhny
7f2b136d34 qdisc ingress_block support 2022-12-13 09:41:45 -08:00
chengzhycn
8baf7b0c69 add support for skbedit mask 2022-10-26 18:47:10 -07:00
Anton Protopopov
1a118fe229 Add horizon attributes to fq
Add two attributes to fq: Horizon and HorizonDrop (which correspond to the
TCA_FQ_HORIZON and TCA_FQ_HORIZON_DROP attributes). The HorizonDrop attribute
specifies which policy to apply: drop (1, kernel default), cap delivery time to
horizon (0), and the Horizon attribute specifies the number of useconds before
applying the policy.

Add a new test TestFqHorizon to test the changes and as an example of usage.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
2022-06-08 12:58:07 -07:00
Nicholas Hollett
5cb84e47ad filter: Add support for the csum action in u32
This patch adds support for the U32 action that can force a csum
recalculation in different layers of a packet.
2022-03-29 10:02:56 -07:00
tanbangcheng
5f76ae2b4d Add basic flower support
Signed-off-by: tanbangcheng <tanbangcheng@bytedance.com>
2021-09-17 18:42:15 -07:00
Ivan Milchev
abd6d09710 added support for SFQ qdiscs 2020-10-19 15:28:26 -04:00
tanbangcheng
06362a6c16 Add DestPort to TunnelKeyAction
Fix parsing of TCA_TUNNEL_KEY_ENC_IPV6_SRC & TCA_TUNNEL_KEY_ENC_IPV6_DST
2020-09-24 21:30:07 -04:00
Zhiyuan Hou
ed8931371a filter, action: Add support for skbedit
Signed-off-by: Zhiyuan Hou <zhiyuan2048@linux.alibaba.com>
2019-12-17 09:15:28 -08:00
Zhiyuan Hou
e25c252266 filter, action: Add support for tunnel_key
Signed-off-by: Zhiyuan Hou <zhiyuan2048@linux.alibaba.com>
2019-12-03 14:07:18 -08:00
Farid Zakaria
2e4a68ee6c Add support for additional TC BPF filter attributes
In order to support BPF_SYSCALL `PROG_GET_FD_BY_ID` -- the ID of the
eBPF must be available.

Add the additional enumerations and handle them when parsing the BPF
filter.
2019-07-01 11:37:39 -07:00
Krister Johansen
00009fb860 Add support for TC_ACT_CONNMARK
Implements the connmark action described in tc-connmark(8)

Signed-off-by: Krister Johansen <krister.johansen@oracle.com>
2019-05-22 08:35:24 -07:00
Francis Begyn
1006cf4f24 Implementation of HFSC
Testing and functionality for the use of HFSC has been implemented.
The use of service curves is implenented closely as to how they behave
with the TC implementation.
Automated checks and testing were succesful.
2018-07-16 12:14:02 -07:00
Taku Fukushima
85aa3b74a4 Add statistics to class attributes
This patch adds ClassStatistics, a struct that represents the stats
of a class based on genric networking stats for netlink, to ClassAttrs.
The parsers for rtattrs in type of TCA_STATS and TCA_STATS2 are
introduced as well and the stats are appropriately parsed as a part
of ClassAttrs struct.

The practical tests for stats are not contained in this patch yet since
it requires the actual packet sending/receiving in the random timing,
which makes the tests complicated and flaky. Once we figure it out how
to test them in the proper way, they shall be added.

Signed-off-by: Taku Fukushima <taku@soracom.jp>
2018-03-27 21:08:57 -07:00
Sargun Dhillon
a2af46a09c Add FQ Codel 2018-02-05 10:22:15 -08:00
Sargun Dhillon
465b5fef28 Add Fq Qdisc support 2018-02-05 10:22:15 -08:00
Sargun Dhillon
1882fa99fc Add Matchall filter 2018-01-05 09:42:30 -08:00
Vish Ishaya
7995ff5647 add generic actions and simplify action type (#129) 2016-05-31 13:03:47 -07:00
Brenden Blanco
1f71a4c2a6 Add some missing tc act flags and structs
Add structs and constants for tca_act_bpf.

Generalize the tc_gen macro as a go struct.
2016-02-26 15:08:04 -08:00
chantra
322c7826d2 [netem] add support for reordering/corruption/correlation
Note: This requires #58 to be merged in order to properly work.
2015-10-28 00:22:47 -07:00
chantra
9b7c60d6bd [netem] minimalist support for netem
Support for tc_netem_qopt options, e.g: latency, limit, loss, gap, duplicate and jitter
2015-10-28 00:22:47 -07:00
chantra
824d7a16e5 Add FW filter support 2015-09-18 18:51:33 -07:00
chantra
ef0cd12f0c Add TC Class support 2015-09-10 22:50:54 -07:00
chantra
2a6a59d231 Enable HTB classful qdisc 2015-09-05 00:13:17 -07:00
Vishvananda Ishaya
1e2e08e8a2 proper values for filter actions 2015-08-19 18:49:04 -07:00
Vishvananda Ishaya
acc8a28738 Add basic support for redirect filter 2015-08-19 16:02:04 -07:00
Vishvananda Ishaya
a6d6ef6a6a support basic tbf qdisc 2015-08-18 14:07:01 -07:00
Vishvananda Ishaya
c9399c7e3d beginning of handling for qdiscs 2015-08-18 03:16:54 -07:00