From patchwork Mon Jan 11 18:17:46 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: 12011369 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 696A5C433DB for ; Mon, 11 Jan 2021 18:18:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3924A22473 for ; Mon, 11 Jan 2021 18:18:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389744AbhAKSSu (ORCPT ); Mon, 11 Jan 2021 13:18:50 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:16293 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389348AbhAKSSu (ORCPT ); Mon, 11 Jan 2021 13:18:50 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 11 Jan 2021 10:18:09 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 11 Jan 2021 18:18:06 +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 18:18:03 +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 , Eran Ben Elisha Subject: [PATCH net-next v3 0/2] Dissect PTP L2 packet header Date: Mon, 11 Jan 2021 20:17:46 +0200 Message-ID: <1610389068-2133-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=1610389089; bh=9VyRX2KZ5rDvXhftGvRABfWtDMjaVeTJDURg3XSEClY=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type; b=VSyokGkbCFdGWXjDR4TdS5pvwfxuYUsR2DSq9+Yzf9UAWuiiDGrEo0Fl0vahYdKqU +BsiCDVxAyk2EerRRhoCRH03NVdqyCC/3Ivc5xzodpSjYnObweo5GxcgTocnZ+dlQn xiJ9boUGci2kzVKopBAJ8uKhtWnUxKnU3s+CIx+f32aeRUoC1c8uAr3KY/0FSM3RNN XGq2cC1CT1WsvBkfx3p0xHha7iNnUUH+dFi/SEuukDIdhT1ON1NZq1amlZRrZA7Uwg 1ScoNOPPkUo2SoQgvljkovSWjT87Cy9PEMn+IUtmcPTvIVlmkYY3cahub2o+RFXQ3U mPpt74GvKy4cg== 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, 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(+)