Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp628489pxu; Thu, 7 Jan 2021 13:57:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8i2266LUoXaEP1QNtAUzR9mcIoPttHtA/s0Dsx558W3E7FXQPFOPsrNysjcm+whzg0MbH X-Received: by 2002:a17:906:15ca:: with SMTP id l10mr603253ejd.402.1610056660250; Thu, 07 Jan 2021 13:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610056660; cv=none; d=google.com; s=arc-20160816; b=WS1WiIoORsyp4/9TJroWgEmpchTcBVP9f7DkNYUBm+ZICePFYHogFC2hO7L2FRUURq 3fJB9HcNzP6ufBmOW21zNqv+uusur/dQ4owtszOHaBrHje+DAounSCC44KBm3Et9Blvv 7Z9kLkuGHwzD8rW1J0Y5+n8Zp6E7QqhH4v3lA+eMHuzPPuNg2ktgoSSv9sYMnL7seEmA 82QK2K0KmA5cjaFp4I+f2DtNnQdLLGH/B/GV+4XG3aQbfWuFMORYhPZv8z02Vnu6C9nn N5W/zBlmus2bKscIbmjKEQ1q4gExBiIc1pySTAHh/otp8XEOjI1HoFMa7/17aMXvjmHs M5Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6AE8hmFEZ8A/YbQnWBweK7marocPfcyMLAEMfjnO1no=; b=c6b0T6URx9nVehMDvVxo6oUi3oxckqq0YUZsP1gkBOhEUfKxgOn6yFmB9zDGFDH5LU ynOSZRLJI8f7uXEoO4IM3jUd0afNlLCJZCFU+04pcgP53SygL2fzzXZZwVQgCAxyGinN 7vPW505MEWcsQmQQzn+S9S4RqVrqGCONoRMdDYyg27smiaYNCmuAV3zDukr5tPURkcri ZB/WCfmVEboY0V7KVvz+s9f5x2fgpdvFVryxe/7wdFWX/u6T39S9eyTsZz7it5hrTYkx 6+EyprVBLscvZj+2hzDHcG+4Jrx4hfF0oUAdyCtHsCdV6xvmF88RYn2HJ1ywIqKxZ1t9 M4Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx27si2639887edb.264.2021.01.07.13.57.12; Thu, 07 Jan 2021 13:57:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727260AbhAGV5D (ORCPT + 99 others); Thu, 7 Jan 2021 16:57:03 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:55880 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726646AbhAGV5D (ORCPT ); Thu, 7 Jan 2021 16:57:03 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kxdGV-00Gkzs-9H; Thu, 07 Jan 2021 22:56:19 +0100 Date: Thu, 7 Jan 2021 22:56:19 +0100 From: Andrew Lunn To: M Chetan Kumar Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, johannes@sipsolutions.net, krishna.c.sudi@intel.com Subject: Re: [PATCH 11/18] net: iosm: encode or decode datagram Message-ID: References: <20210107170523.26531-1-m.chetan.kumar@intel.com> <20210107170523.26531-12-m.chetan.kumar@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210107170523.26531-12-m.chetan.kumar@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > +/* Pass the DL packet to the netif layer. */ > +static int mux_net_receive(struct iosm_mux *ipc_mux, int if_id, > + struct iosm_wwan *wwan, u32 offset, u8 service_class, > + struct sk_buff *skb) > +{ > + /* for "zero copy" use clone */ > + struct sk_buff *dest_skb = skb_clone(skb, GFP_ATOMIC); > + > + if (!dest_skb) > + return -1; > + > + skb_pull(dest_skb, offset); > + > + skb_set_tail_pointer(dest_skb, dest_skb->len); > + > + /* Goto the start of the Ethernet header. */ > + skb_push(dest_skb, ETH_HLEN); > + > + /* map session to vlan */ > + __vlan_hwaccel_put_tag(dest_skb, htons(ETH_P_8021Q), if_id + 1); Well, that explains a bit, my comments on the netdev patch. So there is no Ethernet header on the 'wire'. This is not an Ethernet device at all. More in the documentation patch... Andrew