From patchwork Tue Jan 12 19:07:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eran Ben Elisha X-Patchwork-Id: 12014595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CE94C433E0 for ; Tue, 12 Jan 2021 19:08:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9F88F23107 for ; Tue, 12 Jan 2021 19:08:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392623AbhALTIZ (ORCPT ); Tue, 12 Jan 2021 14:08:25 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:18434 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391891AbhALTIZ (ORCPT ); Tue, 12 Jan 2021 14:08:25 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 12 Jan 2021 11:07:45 -0800 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 12 Jan 2021 19:07:33 +0000 Received: from vdi.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Tue, 12 Jan 2021 19:07:29 +0000 From: Eran Ben Elisha To: "David S. Miller" , Jakub Kicinski CC: , Tariq Toukan , Cong Wang , Eric Dumazet , Jiri Pirko , Vladimir Oltean , Jakub Sitnicki , Guillaume Nault , Richard Cochran , Andrew Lunn , Alexei Starovoitov , Ariel Levkovich , Andrii Nakryiko , "Gustavo A. R. Silva" , "Eran Ben Elisha" Subject: [PATCH net-next v4 0/2] Dissect PTP L2 packet header Date: Tue, 12 Jan 2021 21:07:11 +0200 Message-ID: <1610478433-7606-1-git-send-email-eranbe@nvidia.com> X-Mailer: git-send-email 1.8.4.3 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610478465; bh=9tfB2VQLfeee7kEC0VxpkrpgSJPB5oP+LYA5OcI//ZE=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type; b=QXWu4Z5drGtqxx1l1jXo4M5RAs73i7ZFJv7tw0YGNh3fNbG2laIJotqUao9YIfEVs rAPGaRCqSBMPB6Ka3B6MCEHMKRj5gBtetysHzRMXWqHdsY0jp/qBJb4B+vt+DHs3m/ TqOqSiEdRu/iEAD/tIxCUb85pwy3zAqdDUBkuL/4PCsy4FqO343z9V9aRmI61L2r+L sozst2cEgATGl/LK2ML5S80chCXvFN3ofRnSrm4YDyWu5z01MOvaXlvjzHtmvUqsvk 3+l1OTG3JKsdN7hh4xBL2JQMQdK1MzoWkBMk43HqnO2Q4K4cAWxmPHv3zsHw0mdL9P RrYYXcboYs70g== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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(+)