Thread (17 messages) flat view 17 messages, 7 authors, 2021-09-23

Re: [PATCH RFC net-next 2/2] net/sched: Add flower2 packet classifier based on flower and PANDA parser

From: Felipe Magno de Almeida <hidden>
Date: 2021-09-23 13:34:18

Hello Marcelo,

On Wed, Sep 22, 2021 at 7:32 PM Marcelo Ricardo Leitner
[off-list ref] wrote:
On Thu, Sep 16, 2021 at 05:00:41PM -0300, Felipe Magno de Almeida wrote:
quoted
+int fl2_panda_parse(struct sk_buff *skb, struct fl2_flow_key* frame)
+{
+     int err;
+     struct panda_parser_big_metadata_one mdata;
+     void *data;
+     size_t pktlen;
+
+     memset(&mdata, 0, sizeof(mdata.panda_data));
+     memcpy(&mdata.frame, frame, sizeof(struct fl2_flow_key));
+
+     err = skb_linearize(skb);
Oh ow. Hopefully this is just for the RFC?
Yes, this is just for the RFC. Our focus was showing how PANDA
can easily replace flow dissector by using a useful and complex
use-case (flower) and extending it easily. A proper submission
would not linearize, but first we need feedback on how this
submission should look like.

Kind regards,
--
Felipe Magno de Almeida
Developer @ SiPanda
Owner @ Expertise Solutions
www: https://expertise.dev
phone: +55 48 9 9681.0157
LinkedIn: in/felipealmeida
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help