Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1707318 > unrolled thread
| Started by | John Crispin <john@phrozen.org> |
|---|---|
| First post | 2017-08-09 14:50 +0200 |
| Last post | 2017-08-09 16:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/4] net-next: dsa: add flow_dissect callback to struct dsa_device_ops John Crispin <john@phrozen.org> - 2017-08-09 14:50 +0200
Re: [PATCH 2/4] net-next: dsa: add flow_dissect callback to struct dsa_device_ops Andrew Lunn <andrew@lunn.ch> - 2017-08-09 16:00 +0200
| From | John Crispin <john@phrozen.org> |
|---|---|
| Date | 2017-08-09 14:50 +0200 |
| Subject | [PATCH 2/4] net-next: dsa: add flow_dissect callback to struct dsa_device_ops |
| Message-ID | <ucyAV-76E-5@gated-at.bofh.it> |
When the flow dissector first sees packets coming in on a DSA devices the
802.3 header wont be located where the code expects it to be as the tag
is still present. Adding this new callback allows a DSA device to provide a
new function that the flow_dissector can use to get the correct protocol
and offset of the network header.
Signed-off-by: Muciri Gatimu <muciri@openmesh.com>
Signed-off-by: Shashidhar Lakkavalli <shashidhar.lakkavalli@openmesh.com>
Signed-off-by: John Crispin <john@phrozen.org>
---
include/net/dsa.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 65d7804c6f69..7f46b521313e 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -106,6 +106,8 @@ struct dsa_device_ops {
struct sk_buff *(*rcv)(struct sk_buff *skb, struct net_device *dev,
struct packet_type *pt,
struct net_device *orig_dev);
+ int (*flow_dissect)(const struct sk_buff *skb, __be16 *proto,
+ int *offset);
};
struct dsa_switch_tree {
--
2.11.0
[toc] | [next] | [standalone]
| From | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| Date | 2017-08-09 16:00 +0200 |
| Subject | Re: [PATCH 2/4] net-next: dsa: add flow_dissect callback to struct dsa_device_ops |
| Message-ID | <uczGF-85m-1@gated-at.bofh.it> |
| In reply to | #1707318 |
On Wed, Aug 09, 2017 at 02:41:17PM +0200, John Crispin wrote:
> When the flow dissector first sees packets coming in on a DSA devices the
> 802.3 header wont be located where the code expects it to be as the tag
> is still present. Adding this new callback allows a DSA device to provide a
> new function that the flow_dissector can use to get the correct protocol
> and offset of the network header.
>
> Signed-off-by: Muciri Gatimu <muciri@openmesh.com>
> Signed-off-by: Shashidhar Lakkavalli <shashidhar.lakkavalli@openmesh.com>
> Signed-off-by: John Crispin <john@phrozen.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web