Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp448305ybh; Sat, 18 Jul 2020 08:59:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjz9gidKLASVxlNrPNniaIS1joUoyNuBUEYmunA9g/pqMhro+kzlcKPwTtKxtQQoltRVYS X-Received: by 2002:a17:906:eb5a:: with SMTP id mc26mr14317492ejb.42.1595087969652; Sat, 18 Jul 2020 08:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595087969; cv=none; d=google.com; s=arc-20160816; b=bBySYjZ9ZtwNrf0vjeaK6rNak4WXaplawVsWoIiZmBbWAnfqajzjbNiQoHcUqAwWIy xvvNyaWAEWu4LroKCtCHfB0VhHeD2FVSoFfTXjmm8DhiyHUC4dr4XBZyGTA9vIBLjq8L DGWswwBkoj1X+BC2pbaoR1l4Ux7EEoa3t35pRTsVxq8u7acxxSeNcc6hW3ybkKtoY0ju Yu7ijrlnMYbXPXQ0EzxCEgZqsaLLWZmzYyCRR//TB1DYfJP3K3nKBuXzvw15wSzdwXTo oL0fEo8CjX+BESz3FuURRQUfVtrIVK5a3vPlSAsFn0++1ZdDnYirIBcKPJyqJCf4cioL HdLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Plzvh6H4Hj4vOwuOygDMUlL5YJQ5p6zhFN1IKlQxzyU=; b=k+YTlfH/Ma8ge3sbOeivgUoF0ahQhxILV9bpJxUcjl4257lgab3gHphcelOUlj2LAP ydfXBXiR3f+AF/I1riGrs8/ek9W/53cUirFWeu2CbPp1CnLD1h0yKUunc8rALOyB/gIG MCDN8Lt3CTB0uMqQtnCNtUUUxpXBq3qH9hhpPjSK7otOO0B64xRqo/nV5x2uiDc49/GB hE51znYwkZntIWoy0XyMonymfG+vlQOjmCgnL7o3SEwGS79ZKBdTVSse7cjYOeuj3THW lGnvPIcaN66Of1VvxcIwPqEDFDhwM+jwOPtPVECuSTh813nsrYtErp77NdijwVyvfHRC /itA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ifh1Ra8d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si7822787edb.90.2020.07.18.08.59.06; Sat, 18 Jul 2020 08:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ifh1Ra8d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728256AbgGRP6u (ORCPT + 99 others); Sat, 18 Jul 2020 11:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbgGRP6t (ORCPT ); Sat, 18 Jul 2020 11:58:49 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A55F4C0619D2 for ; Sat, 18 Jul 2020 08:58:49 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id j10so9924428qtq.11 for ; Sat, 18 Jul 2020 08:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Plzvh6H4Hj4vOwuOygDMUlL5YJQ5p6zhFN1IKlQxzyU=; b=ifh1Ra8dpMd3QeCqbe0IeHUsUr+GMcVoPiANc+Cl0oz2CHrfUsRokRmGmQ2kfW39Jb 9jw3Q/Wv8BRh86YqbJyd5r99MRYJNQSGSe9XMrdmsfgydbSyicsEV74ipNbcfM99Gh1T xHIdhn7KcErvRd3a+H//yxuCrb3bDh+lDTvfb96m/TKpjSO4m/qrMV87pQbF0OdLkgIv calxHyi8+AlbGE4wiW3fMxNR8S2OQzr0W30u2ksvEh539k515LDNEGJGhO4yKb+GF9ua Ee0XKlu12o1XOLIYfWpMOqJF6Hghk7H6PsOWc4Ox4uhciYW1v5nG29dn6I1bLigoKBeB GyBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Plzvh6H4Hj4vOwuOygDMUlL5YJQ5p6zhFN1IKlQxzyU=; b=p+xZy0AScm8RRhvIiq3hRRoYOmHo5jKliIkrO4SIaX5tEl47OhXIhISQYicXsFSUWd mRmcr0TUWXAmbh7OfrX5tfFt1wNMUEgn67Wcq0bOUblA/YkWOcXM7nWBi4Id9VY4KikW ocplhxXjhey/wLLAnqr5VOyXbAwQ9DnkqjHtK430V9GAlvFLjgdDjC55ZwyJSBO+0YnL ejUk16Vy7YHDkhQRIN0xD3dLrfm4avCEO7zbf8qjEvGw3bYvAUl7sqU5wS6Ob5MqzJTX cUEwyTP0UzkqYgTAHuv/pxo0jw26STiOCleovZtGUDBK5eW6FV/GD+24SOOrRqwXuZsq hzlA== X-Gm-Message-State: AOAM531vCsEELP/EuxUMPClUVwsND+82N6xSEALrjXWsC6Olm/6pT6Rq JKZs4YsEAPh0RsIt/8IVj9U9z8gC X-Received: by 2002:ac8:4788:: with SMTP id k8mr16491868qtq.120.1595087927730; Sat, 18 Jul 2020 08:58:47 -0700 (PDT) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id h41sm15387296qtk.68.2020.07.18.08.58.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Jul 2020 08:58:46 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id g6so6038452ybo.11 for ; Sat, 18 Jul 2020 08:58:45 -0700 (PDT) X-Received: by 2002:a25:cc4e:: with SMTP id l75mr22783187ybf.165.1595087925354; Sat, 18 Jul 2020 08:58:45 -0700 (PDT) MIME-Version: 1.0 References: <20200718091732.8761-1-srirakr2@cisco.com> In-Reply-To: <20200718091732.8761-1-srirakr2@cisco.com> From: Willem de Bruijn Date: Sat, 18 Jul 2020 11:58:09 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] AF_PACKET doesnt strip VLAN information To: Sriram Krishnan Cc: Andrew Morton , xe-linux-external@cisco.com, "David S. Miller" , Jakub Kicinski , Network Development , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 18, 2020 at 5:25 AM Sriram Krishnan wrote: > > When an application sends with AF_PACKET and places a vlan header on > the raw packet; then the AF_PACKET needs to move the tag into the skb > so that it gets processed normally through the rest of the transmit > path. > > This is particularly a problem on Hyper-V where the host only allows > vlan in the offload info. Shouldn't this be resolved in that driver, then? Packet sockets are not the only way to introduce packets in the kernel. Tuntap would be another.