Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753304AbbKCJl5 (ORCPT ); Tue, 3 Nov 2015 04:41:57 -0500 Received: from mail-by2on0137.outbound.protection.outlook.com ([207.46.100.137]:48696 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753027AbbKCJlR convert rfc822-to-8bit (ORCPT ); Tue, 3 Nov 2015 04:41:17 -0500 From: Madalin-Cristian Bucur To: Joe Perches CC: "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , Scott Wood , Liberman Igal , "Roy Pledge" , "ppc@mindchasers.com" , "pebolle@tiscali.nl" , "joakim.tjernlund@transmode.se" , "gregkh@linuxfoundation.org" Subject: RE: [net-next v4 3/8] dpaa_eth: add support for S/G frames Thread-Topic: [net-next v4 3/8] dpaa_eth: add support for S/G frames Thread-Index: AQHRFYxJUlzTOINvT0SiDzxIpIgc+56JKQKAgADinbA= Date: Tue, 3 Nov 2015 09:41:14 +0000 Message-ID: References: <1446485500-9782-1-git-send-email-madalin.bucur@freescale.com> <1446485500-9782-4-git-send-email-madalin.bucur@freescale.com> <1446494829.24485.63.camel@perches.com> In-Reply-To: <1446494829.24485.63.camel@perches.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=madalin.bucur@freescale.com; x-originating-ip: [192.88.166.1] x-microsoft-exchange-diagnostics: 1;BL2PR03MB500;5:o4F1cTlYUunozvvXho2/fqjC3raCVov/HWfygoEF8GW8umFx8JgeGtGCVLVll6HZgLR85RulWKFHMAxbuldYrUwpoTIgN1p9+70isayPLgOPCUL6zioA0T6n8JHYNEnlMdTqWCwFgHiXnqc521TugA==;24:MF1ijhvwUgYKf60+r1PURpsodPiCnigFQf6zfLzWw3juWGUtX3TvnNa/MxgzSISQjGtCsu6oszU8vGkv1ugg5RuaVTcJv65sGtYb/xRb47g=;20:9df3XdNqqO6oZaeLHCdOFaRJKzXj9ug0vBLTkfu/OtgMume6ei+NCTPa2e+yBGu5AUELimt7O3D0pHQ7QZEB3g== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB500; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046);SRVR:BL2PR03MB500;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB500; x-forefront-prvs: 0749DC2CE6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377424004)(199003)(13464003)(189002)(24454002)(92566002)(86362001)(33656002)(19580405001)(66066001)(87936001)(5003600100002)(122556002)(19580395003)(81156007)(5002640100001)(97736004)(2900100001)(101416001)(40100003)(50986999)(189998001)(74316001)(5008740100001)(77096005)(102836002)(105586002)(2950100001)(106356001)(99286002)(5004730100002)(5007970100001)(76576001)(11100500001)(76176999)(5001960100002)(106116001)(10400500002)(110136002)(54356999);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR03MB500;H:BL2PR03MB545.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Nov 2015 09:41:14.5428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB500 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1245 Lines: 36 > -----Original Message----- > From: Joe Perches [mailto:joe@perches.com] > > On Mon, 2015-11-02 at 19:31 +0200, Madalin Bucur wrote: > > Add support for Scater/Gather (S/G) frames. The FMan can place > > the frame content into multiple buffers and provide a S/G Table > > (SGT) into one first buffer with references to the others. > > trivia: scatter > > > diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth_common.c > b/drivers/net/ethernet/freescale/dpaa/dpaa_eth_common.c > [] > > @@ -1177,10 +1177,42 @@ void dpaa_eth_init_ports(struct mac_device > *mac_dev, > > port_fqs->rx_defq, &buf_layout[RX]); > > } > > > > +void dpa_release_sgt(struct qm_sg_entry *sgt) > > +{ > > + struct dpa_bp *dpa_bp; > > + struct bm_buffer bmb[DPA_BUFF_RELEASE_MAX]; > > Where is "struct bm_buffer" defined? > Thank you, I'll address this and the other observations you have sent. The struct bm_buffer is defined in the Buffer Manager driver header file, in include/soc/fsl/bman.h. Madalin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/