From: Eran Ben Elisha <hidden> Date: 2021-01-12 19:08:27
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:
v4:
- Drop a redundant length check when fetching ptp header from skb.
v2, v3:
- Add more people to the 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-12 19:08:34
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-12 19:08:36
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(+)
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
On Tue, 12 Jan 2021 21:07:11 +0200 you 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.
[...]
From: Richard Cochran <richardcochran@gmail.com> Date: 2021-01-15 17:20:53
On Tue, Jan 12, 2021 at 09:07:13PM +0200, Eran Ben Elisha wrote:
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>
Acked-by: Richard Cochran <richardcochran@gmail.com>