RE: Re: [PATCH net-next] flow_dissector: Add IPSEC dissectors

From
Ratheesh Kannoth <rkannoth@marvell.com>
Date
2023-07-26 05:55:22
Also in
lkml
Reply to
Ido Schimmel, 2023-07-25
From: Ido Schimmel <redacted>
Sent: Tuesday, July 25, 2023 3:43 PM
Subject: [EXT] Re: [PATCH net-next] flow_dissector: Add IPSEC dissectors
quoted
 include/net/flow_dissector.h |  9 ++++++
 include/net/flow_offload.h   |  6 ++++
 include/uapi/linux/pkt_cls.h |  3 ++
 net/core/flow_dissector.c    | 53
+++++++++++++++++++++++++++++++++++-
quoted
 net/core/flow_offload.c      |  7 +++++
 net/sched/cls_flower.c       | 18 ++++++++++++
Please split flow dissector and flower changes into separate patches.
Also, you can't add the flow offload bits without a corresponding driver
change. Nobody calls the exported flow_rule_match_ipsec() function.
Ack, will remove offload related code from this patch.




[...]
quoted
diff --git a/include/uapi/linux/pkt_cls.h
b/include/uapi/linux/pkt_cls.h index 7865f5a9885b..a90b0e3d351f 100644
--- a/include/uapi/linux/pkt_cls.h
+++ b/include/uapi/linux/pkt_cls.h
@@ -594,6 +594,9 @@ enum {

 	TCA_FLOWER_KEY_L2TPV3_SID,	/* be32 */

+	TCA_FLOWER_KEY_SPI,		/* be32 */
+	TCA_FLOWER_KEY_SPI_MASK,	/* be32 */
+
This will break existing user space on new kernels. New attributes must be
added at the end.
quoted
 	TCA_FLOWER_L2_MISS,		/* u8 */

 	TCA_FLOWER_KEY_CFM,		/* nested */
Thread (8 messages) 8 messages, 4 authors, last reply 2023-07-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help