From patchwork Mon Jan 11 09:46:50 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: 12010169 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 A64B4C433E6 for ; Mon, 11 Jan 2021 09:48:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5DDDE22AB0 for ; Mon, 11 Jan 2021 09:48:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728686AbhAKJs0 (ORCPT ); Mon, 11 Jan 2021 04:48:26 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:1927 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727819AbhAKJsZ (ORCPT ); Mon, 11 Jan 2021 04:48:25 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 11 Jan 2021 01:47:44 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 11 Jan 2021 09:47:39 +0000 Received: from vdi.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Mon, 11 Jan 2021 09:47:36 +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 , Eran Ben Elisha Subject: [PATCH net-next v2 0/2] Dissect PTP L2 packet header Date: Mon, 11 Jan 2021 11:46:50 +0200 Message-ID: <1610358412-25248-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=1610358464; bh=vQfHd3KilKrYPJ8ra3urcKcCMaAH1DZuW/RwYi7Lbk8=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type; b=AEekpZuMLTrw+v+1HsQdRvsRH36JAFKOL747MiUlidPsqTqZWuRRifrJhAcLk47Uq 0niXRONAc2xCa+CD0jZ8XHRI3ZUGU+2eRHdpw+1sf6w5BCqdYXD8SOswig9JpXgPc1 mcgdUabWMlhelwC9Ebj5Bg2/c/FdkL+lBcNaHjg1Q5eOSpUlZUxJkfxX7g0ceKp3+r kIg24mSWmnxwZuQZLIiCuKQ84jJP5pqpo0eZl6c9LcwDpqLmgBSqx0X+ZDgga/MIX7 B2BFS9ehAM8ti2juKoYQmIH8571Tguj6ACXqL37FfxqRWcIwJHn/f2Vfk/9Yl7JO4d fhGzfmXPc9ViQ== 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: 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(+)