From patchwork Thu Jan 7 12:38:58 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: 12003979 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 886ACC433DB for ; Thu, 7 Jan 2021 12:40:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B68F23138 for ; Thu, 7 Jan 2021 12:40:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728343AbhAGMjp (ORCPT ); Thu, 7 Jan 2021 07:39:45 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:9482 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728204AbhAGMjo (ORCPT ); Thu, 7 Jan 2021 07:39:44 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 07 Jan 2021 04:39:03 -0800 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 7 Jan 2021 12:39:03 +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; Thu, 7 Jan 2021 12:39:01 +0000 From: Eran Ben Elisha To: , "David S. Miller" , "Jakub Kicinski" CC: Tariq Toukan , Eran Ben Elisha Subject: [PATCH net-next 0/2] Dissect PTP L2 packet header Date: Thu, 7 Jan 2021 14:38:58 +0200 Message-ID: <1610023140-20256-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=1610023143; bh=BWl9xGQKIaxCBOfL2IOSXUGzQvjFBIB9Z+0aW0kd1Tw=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type; b=ibYlDCEKNnOYUXLp1upWuYa0WppQGa3UGm43UyjjyoNvs041MUfkg9J46lM/AiNLj E0Qq4jAX24QgXQDzJpZvXxlt+t/xWr+aA2kIj/bvAof6qTjgCB0A3Ub2fUoZ7oaYc6 CvkDtNRfO+0ZXBcR1uDMToJ7q5i/o8O9uXIRq85Sy0vwqpFWsQFSwf1k4UKi9PtXVu e/8DBbq0D2T1p2/qsJFoVhENNS4lmDodFkfqRhm5HY0HKwdEKLAAUTghqEf5SkYRmt 8jruCGe6LO+nvopHQwExZ2uGWIaO5dXKmlyPG7isL9lPLp9ydCG4s83TbvmRzQbSUR PmTCl5ijoNokw== 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. 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(+)