From: Eran Ben Elisha <hidden> Date: 2021-01-11 09:48:42
Hi Jakub, Dave,
This series adds support for dissecting PTP L2 packet
header (EtherType 0x88F7).
For packet header dissecting, skb->protocol is needed. Add protocol
parsing operation to vlan ops, to guarantee skb->protocol is set,
as EtherType 0x88F7 occasionally follows a vlan header.
Changelog:
v2:
- Add more people to CC list.
Eran Ben Elisha (2):
net: vlan: Add parse protocol header ops
net: flow_dissector: Parse PTP L2 packet header
net/8021q/vlan_dev.c | 9 +++++++++
net/core/flow_dissector.c | 16 ++++++++++++++++
2 files changed, 25 insertions(+)
--
2.17.1
From: Eran Ben Elisha <hidden> Date: 2021-01-11 09:48:42
Add parse protocol header ops for vlan device. Before this patch, vlan
tagged packet transmitted by af_packet had skb->protocol unset. Some
kernel methods (like __skb_flow_dissect()) rely on this missing information
for its packet processing.
Signed-off-by: Eran Ben Elisha <redacted>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
---
net/8021q/vlan_dev.c | 9 +++++++++
1 file changed, 9 insertions(+)
From: Eran Ben Elisha <hidden> Date: 2021-01-11 09:48:42
Add support for parsing PTP L2 packet header. Such packet consists
of an L2 header (with ethertype of ETH_P_1588), PTP header, body
and an optional suffix.
Signed-off-by: Eran Ben Elisha <redacted>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
---
net/core/flow_dissector.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
From: Andrew Lunn <andrew@lunn.ch> Date: 2021-01-11 15:50:25
On Mon, Jan 11, 2021 at 11:46:50AM +0200, Eran Ben Elisha wrote:
Hi Jakub, Dave,
This series adds support for dissecting PTP L2 packet
header (EtherType 0x88F7).
For packet header dissecting, skb->protocol is needed. Add protocol
parsing operation to vlan ops, to guarantee skb->protocol is set,
as EtherType 0x88F7 occasionally follows a vlan header.
Changelog:
v2:
- Add more people to CC list.
Hi Eran
How about adding the PTP maintainer to the CC: list?
Andrew
From: Eran Ben Elisha <hidden> Date: 2021-01-11 18:16:06
On 1/11/2021 5:49 PM, Andrew Lunn wrote:
On Mon, Jan 11, 2021 at 11:46:50AM +0200, Eran Ben Elisha wrote:
quoted
Hi Jakub, Dave,
This series adds support for dissecting PTP L2 packet
header (EtherType 0x88F7).
For packet header dissecting, skb->protocol is needed. Add protocol
parsing operation to vlan ops, to guarantee skb->protocol is set,
as EtherType 0x88F7 occasionally follows a vlan header.
Changelog:
v2:
- Add more people to CC list.
Hi Eran
How about adding the PTP maintainer to the CC: list?
Andrew