From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0078.outbound.protection.outlook.com [104.47.38.78]) by dpdk.org (Postfix) with ESMTP id 975A41B294 for ; Sat, 9 Sep 2017 13:11:44 +0200 (CEST) Received: from BN3PR03CA0109.namprd03.prod.outlook.com (2603:10b6:400:4::27) by SN2PR03MB2270.namprd03.prod.outlook.com (2603:10b6:804:d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Sat, 9 Sep 2017 11:11:43 +0000 Received: from BN1AFFO11OLC004.protection.gbl (2a01:111:f400:7c10::146) by BN3PR03CA0109.outlook.office365.com (2603:10b6:400:4::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Sat, 9 Sep 2017 11:11:43 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC004.mail.protection.outlook.com (10.58.53.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Sat, 9 Sep 2017 11:11:43 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v89BAUhc026326; Sat, 9 Sep 2017 04:11:41 -0700 From: Shreyansh Jain To: CC: , Date: Sat, 9 Sep 2017 16:51:29 +0530 Message-ID: <20170909112132.13936-39-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170909112132.13936-1-shreyansh.jain@nxp.com> References: <20170823141213.25476-1-shreyansh.jain@nxp.com> <20170909112132.13936-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131494291032174618; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(105606002)(2950100002)(189998001)(6916009)(6666003)(48376002)(97736004)(104016004)(2906002)(86362001)(77096006)(305945005)(8656003)(85426001)(356003)(54906002)(5660300001)(53936002)(81156014)(5003940100001)(68736007)(106466001)(2351001)(47776003)(33646002)(8936002)(81166006)(498600001)(8676002)(50986999)(1076002)(76176999)(36756003)(110136004)(50226002)(4326008)(50466002)(83323001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2270; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC004; 1:Llw3o93cIvR/JOMWscJ/U+YcH0XogqmDr3CEaHaSdKQ6GISHkYQx0Ee6e4nefyTR7c04tQ+NhkpbqiwrF7KOy6ddJwH+JIQwnx+NEEBjmDX2AkXphuiqjhM8UDBs5x5d MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b43c6bf-1f55-4ef4-8ebd-08d4f7738d6b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN2PR03MB2270; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2270; 3:MYK5fqfOZbDZiNzKTydDEQzr029O0foN6kEEo/6GeVjm/I7SnyecxsbmjWxb1FYVyzHM1P+QxrEigonxg9HouzOf6KNqkysm2PUYz+6p+P06JJOqZH49SDka4afSVsj7YAX+uqOlfUi9jr84Xqz1AiX51My1zT5yKlnOCngLI9HkQPy4qSRPsOyaz0jKGSnvliGSjlQBteBTQ4Qw4hmnJaIQcs3pkUHuLcBGSr/skfheNXtLkp6vVfA70qpu6I8Vh5BwX7QplA7k9VLU2eE+h8RzeQzcKVtT+Thc8Dfm39wH5i+P2UB0473iIVEADU8auPbyfy+wqeCkY+M1itw3w5eAzrpqSJfra+OEuozrNvQ=; 25:7jfo0JjvT637eJSK7BAGTRDimbUGJHqKIdbk+m82RkDrrWsHwRIH1a2w1qmQg09d9SKzxBBR/vvBBkOrAV8ebdwS7yIIiFvpT8SYD1Lc8nVJhqHw92tCHalbVPAC41ILX2QmqiF95iUC10d+YFpXHX/7fba/VKWjHRV4/xzq2MAmTOIkOWl3dvFkGyp9F6Of+YgCGB8o/l54p7cEHlvtZCbsA8/ObWF6J+rmU9lKP1RZcyRolqT/Qm6fKJLC72bNrtwecAnfzl23UVqYlLZyXwJyHPyGoi8b13py1rAvygPIR2he91g/Ga+l95LvbV289U0nCD3h833HStPJatzojw== X-MS-TrafficTypeDiagnostic: SN2PR03MB2270: X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2270; 31:zJZak3TfMR3JezZPMMNCZwofaE8UvbfJaVlUdQ0oApK4g5YXKjHK0K3st5gwjX2VfdyTh1uNRdQFFgVLsqdugaL1OzQ0+kYW00HY3aG0wnlGrtzzYy8wdLlI+NrTmdqi09ujgq1cxihLa7PvskLCpSErK782sbecEa0oAhjcJavAL/ZFe6gLTB6LfF27BBCVZeaGoqIc3ShRZKFz0FwqNt7C1SEapY574HSeh+7njh4=; 4:/TUXYRU5/TmWojhxFTHLXu0A8qHXDWBsWSN/utVnDxBVEczYcIePpIfCXLsomLfZ/gHNwGFVOQ4ravMQM1ws4Mvjmx7N4zdqU42+F3KGD/OhcPB+S1wI0pRfzI2ViqYrVh7iweAR40e5FFYxNJ5MwT880mHbsj+2wM4Q1WrckeLalrQPLKGAeEQWzNq48RtiEPJ8q5uEH/p7xYa9hLjsEMi3JO10ogpnC5KJvcy764DYOosEz7TsmwSbSChgQTAOJW5EB3p+Sgi1ra0OjKlizqIBZ4p8iLIqQybc+jYFVmc= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123563025)(20161123556025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123565025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR03MB2270; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR03MB2270; X-Forefront-PRVS: 0425A67DEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2270; 23:4T/tPSgUV1mQDyK1SAfhqj9oQTCk7cp3ACnCYZ/Fg?= =?us-ascii?Q?IAa7trGMlPBUVa3x3erO0X58IxdF4qIhIKk31iJ3MFoik1f6kVwMPpHo6oY9?= =?us-ascii?Q?3YwCWPH2Vh5Bbn+a2DXzJSzSat2IcywBx4WqiwTKEY7lR1/Dsr/a5JDC4Lvd?= =?us-ascii?Q?IpNFdDuHZq416+VqOGihIEHUJqrfkPMMD8CZWyMYtltTEHJTZ/IJes/C6a/n?= =?us-ascii?Q?Us9OpyebakTn47yQ/JAIQTl4FrtCC0hN8JDR9I4GcSQIAdemmiENcPMUObWO?= =?us-ascii?Q?Dh7pMvhGqKpLyP33uBEUAp4K5lZ1dFBnNvv1ZI+iAYuhvl16pcW9nDXy5/Zw?= =?us-ascii?Q?cljXQ/JNoiU8yFH4xhoXyRE2egSqMxCQ0QK70JGcieXxMj/ncEdOIFsad+Eb?= =?us-ascii?Q?Htl2pN4SwNF510Q/Mu5bwZArPOAJdpcxVvnzwk2QtN5bVyaeSKFrale3zQ5o?= =?us-ascii?Q?VLMInsT5IkDXj2ipKpfgtVgEvvBij8i0HooUc8CWBGexNdM0ZuEwlQgmdqjN?= =?us-ascii?Q?9N7cS/trSVux67swRalxaRcHnJy2a6dRtgljrUXBygiHOOQaqI+GfK91jTdX?= =?us-ascii?Q?YSI9EBxRHNnGz6PS8Cbv6ldsarHMG4SEHn1a7IagMyMnilUazt3r+3Ky5Hm6?= =?us-ascii?Q?ybiAIdE1J3hOZNu2J4RYnFEzH9jZV5Pxbis9lKVMpDoW9YBC7JrC8btuT7My?= =?us-ascii?Q?S26+wjHnK0vKF/wNzxyIe3hek1dibQ1mTYrBl6oYEMRvBdzo5ASeydJ5yYbr?= =?us-ascii?Q?QHBSXMbbNM6qfVSTs0ewh+MYXsXG8no9KCKxQAJ/K4K16F6nYaWRALiWrlr4?= =?us-ascii?Q?iwF4M+Tl19ZyPa2Qp3WFXRPF+db1N+5XhslWEtWSmfBgruOyDQx+/Q22Y4j3?= =?us-ascii?Q?JDYVXK5Kv7WIrs5Tt82Ns8+Gt4b1mww7TCWobf+8eHgY0wp2Kgip14RCINsP?= =?us-ascii?Q?cG/hTQsDwfi+c8IT612GYmVXqCtBfyv9uZE7Z5oE1QfMa6QmfWDx1OM6he+S?= =?us-ascii?Q?FukdB9SbvGQQKUB31LI9Fl2TQuAqCxD258LcdrffzAJz8osHHVvTq2nvhmpt?= =?us-ascii?Q?UCwJbLlwhk2UYEMb6WfR93zOsq6T/qRTGekmwZadRU9K7iILkpLWgN9KvQBq?= =?us-ascii?Q?HWIDhyPBddjOWCZ/EaBJbsi1xpcj9nBKkcETz9RpJpCp+LCafck8w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2270; 6:R64rFM4qpxciuUtYtUh5hlDHE2ZpbN4tcRsLLIxKSYYDuxRyv22OsJv/tmgltdHdbn8YD+Eqtsb3LwE/CWwp3fuQE4qTdSVwJq5jt6hYEi1aQAhL4hHXgF+pOBgLZchOHGupaGBwgpk2Rr02I70EV7YgtE5bg0A9DZbKvVvsoB12JyUruRNRSiPlpEvTdJ+zFXNIoDahLtNeQdygRvkdMICze9t96wIVGoXJsBFV+1bglSRkNn90FQCRhD3PY3XLAwJvcIA2c08y9qtlZkfrq4HwKHEE+7E0kqW2MgG4PMjbxGGByNGQxK18jl+JQWQz9+uvuSUEHMP3mmjkLIALlg==; 5:peQfin4X1vxlPTqwU64W5hi1+20WGKzaEfAJ4D+A2nO1BxC0oHy0+e0k55Qch16G4caSHHrkMIpW6jt8zWE7y/m7fl/Qh5PV7WL6cvys57CG2+fNeltQdfDmn7Ou5IUOG5ivlL3VSBZ/myQl7Nsoeg==; 24:QLZwC67ichaKhbDimHdeCgdpAAXfKyfyy3YxD8NZp2wmY4Y9PmaSf4SAavgxbmzrfeXaV9N9wSQB4ZCgXJHB8OhMwNg/zJ3s2Mq86b9CcPI=; 7:XmgyoqKh8iGbgn3ueAF4BgB/WhnLTCyvuOj6d9yD7MO+yNlrNyrlfabOfMEeib5cCRKz33nKxUOOt1TFGZvLOweYqgu7dBtVJNv+vp4q2iqhGasH+rBwONZqM1MPZ2yKGMe9NaUEV3jt1wCK4qfOQumjPAurJSzSW6+jrDIG28WB1bImJD/Uwk+oDynaGevZWQ9TSEXRkrjsGs0mDOhQrg229dQrZEuOH7kwgwiPmmg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2017 11:11:43.0302 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2270 Subject: [dpdk-dev] [PATCH v4 38/41] net/dpaa: add support for Scattered Rx X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Sep 2017 11:11:45 -0000 Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_rxtx.c | 159 ++++++++++++++++++++++++++++++++++++++ drivers/net/dpaa/dpaa_rxtx.h | 9 +++ 3 files changed, 169 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index 23626c0..0e7956c 100644 --- a/doc/guides/nics/features/dpaa.ini +++ b/doc/guides/nics/features/dpaa.ini @@ -8,6 +8,7 @@ Speed capabilities = P Link status = Y Jumbo frame = Y MTU update = Y +Scattered Rx = Y Promiscuous mode = Y Allmulticast mode = Y Unicast MAC filter = Y diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 0f43bb4..8133a89 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -276,18 +276,82 @@ static inline void dpaa_checksum_offload(struct rte_mbuf *mbuf, fd->cmd = DPAA_FD_CMD_RPD | DPAA_FD_CMD_DTC; } +struct rte_mbuf * +dpaa_eth_sg_to_mbuf(struct qm_fd *fd, uint32_t ifid) +{ + struct dpaa_bp_info *bp_info = DPAA_BPID_TO_POOL_INFO(fd->bpid); + struct rte_mbuf *first_seg, *prev_seg, *cur_seg, *temp; + struct qm_sg_entry *sgt, *sg_temp; + void *vaddr, *sg_vaddr; + int i = 0; + uint8_t fd_offset = fd->offset; + + DPAA_RX_LOG(DEBUG, "Received an SG frame"); + + vaddr = rte_dpaa_mem_ptov(qm_fd_addr(fd)); + if (!vaddr) { + DPAA_PMD_ERR("unable to convert physical address"); + return NULL; + } + sgt = vaddr + fd_offset; + sg_temp = &sgt[i++]; + hw_sg_to_cpu(sg_temp); + temp = (struct rte_mbuf *)((char *)vaddr - bp_info->meta_data_size); + sg_vaddr = rte_dpaa_mem_ptov(qm_sg_entry_get64(sg_temp)); + + first_seg = (struct rte_mbuf *)((char *)sg_vaddr - + bp_info->meta_data_size); + first_seg->data_off = sg_temp->offset; + first_seg->data_len = sg_temp->length; + first_seg->pkt_len = sg_temp->length; + rte_mbuf_refcnt_set(first_seg, 1); + + first_seg->port = ifid; + first_seg->nb_segs = 1; + first_seg->ol_flags = 0; + prev_seg = first_seg; + while (i < DPAA_SGT_MAX_ENTRIES) { + sg_temp = &sgt[i++]; + hw_sg_to_cpu(sg_temp); + sg_vaddr = rte_dpaa_mem_ptov(qm_sg_entry_get64(sg_temp)); + cur_seg = (struct rte_mbuf *)((char *)sg_vaddr - + bp_info->meta_data_size); + cur_seg->data_off = sg_temp->offset; + cur_seg->data_len = sg_temp->length; + first_seg->pkt_len += sg_temp->length; + first_seg->nb_segs += 1; + rte_mbuf_refcnt_set(cur_seg, 1); + prev_seg->next = cur_seg; + if (sg_temp->final) { + cur_seg->next = NULL; + break; + } + prev_seg = cur_seg; + } + + dpaa_eth_packet_info(first_seg, (uint64_t)vaddr); + rte_pktmbuf_free_seg(temp); + + return first_seg; +} + static inline struct rte_mbuf *dpaa_eth_fd_to_mbuf(struct qm_fd *fd, uint32_t ifid) { struct dpaa_bp_info *bp_info = DPAA_BPID_TO_POOL_INFO(fd->bpid); struct rte_mbuf *mbuf; void *ptr; + uint8_t format = + (fd->opaque & DPAA_FD_FORMAT_MASK) >> DPAA_FD_FORMAT_SHIFT; uint16_t offset = (fd->opaque & DPAA_FD_OFFSET_MASK) >> DPAA_FD_OFFSET_SHIFT; uint32_t length = fd->opaque & DPAA_FD_LENGTH_MASK; DPAA_RX_LOG(DEBUG, " FD--->MBUF"); + if (unlikely(format == qm_fd_sg)) + return dpaa_eth_sg_to_mbuf(fd, ifid); + /* Ignoring case when format != qm_fd_contig */ ptr = rte_dpaa_mem_ptov(fd->addr); /* Ignoring case when ptr would be NULL. That is only possible incase @@ -390,6 +454,95 @@ static struct rte_mbuf *dpaa_get_dmable_mbuf(struct rte_mbuf *mbuf, return dpaa_mbuf; } +int +dpaa_eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf, + struct qm_fd *fd, + uint32_t bpid) +{ + struct rte_mbuf *cur_seg = mbuf, *prev_seg = NULL; + struct dpaa_bp_info *bp_info = DPAA_BPID_TO_POOL_INFO(bpid); + struct rte_mbuf *temp, *mi; + struct qm_sg_entry *sg_temp, *sgt; + int i = 0; + + DPAA_TX_LOG(DEBUG, "Creating SG FD to transmit"); + + temp = rte_pktmbuf_alloc(bp_info->mp); + if (!temp) { + DPAA_PMD_ERR("Failure in allocation of mbuf"); + return -1; + } + if (temp->buf_len < ((mbuf->nb_segs * sizeof(struct qm_sg_entry)) + + temp->data_off)) { + DPAA_PMD_ERR("Insufficient space in mbuf for SG entries"); + return -1; + } + + fd->cmd = 0; + fd->opaque_addr = 0; + + if (mbuf->ol_flags & DPAA_TX_CKSUM_OFFLOAD_MASK) { + if (temp->data_off < DEFAULT_TX_ICEOF + + sizeof(struct dpaa_eth_parse_results_t)) + temp->data_off = DEFAULT_TX_ICEOF + + sizeof(struct dpaa_eth_parse_results_t); + dcbz_64(temp->buf_addr); + dpaa_checksum_offload(mbuf, fd, temp->buf_addr); + } + + sgt = temp->buf_addr + temp->data_off; + fd->format = QM_FD_SG; + fd->addr = temp->buf_physaddr; + fd->offset = temp->data_off; + fd->bpid = bpid; + fd->length20 = mbuf->pkt_len; + + while (i < DPAA_SGT_MAX_ENTRIES) { + sg_temp = &sgt[i++]; + sg_temp->opaque = 0; + sg_temp->val = 0; + sg_temp->addr = cur_seg->buf_physaddr; + sg_temp->offset = cur_seg->data_off; + sg_temp->length = cur_seg->data_len; + if (RTE_MBUF_DIRECT(cur_seg)) { + if (rte_mbuf_refcnt_read(cur_seg) > 1) { + /*If refcnt > 1, invalid bpid is set to ensure + * buffer is not freed by HW. + */ + sg_temp->bpid = 0xff; + rte_mbuf_refcnt_update(cur_seg, -1); + } else { + sg_temp->bpid = + DPAA_MEMPOOL_TO_BPID(cur_seg->pool); + } + cur_seg = cur_seg->next; + } else { + /* Get owner MBUF from indirect buffer */ + mi = rte_mbuf_from_indirect(cur_seg); + if (rte_mbuf_refcnt_read(mi) > 1) { + /*If refcnt > 1, invalid bpid is set to ensure + * owner buffer is not freed by HW. + */ + sg_temp->bpid = 0xff; + } else { + sg_temp->bpid = DPAA_MEMPOOL_TO_BPID(mi->pool); + rte_mbuf_refcnt_update(mi, 1); + } + prev_seg = cur_seg; + cur_seg = cur_seg->next; + prev_seg->next = NULL; + rte_pktmbuf_free(prev_seg); + } + if (cur_seg == NULL) { + sg_temp->final = 1; + cpu_to_hw_sg(sg_temp); + break; + } + cpu_to_hw_sg(sg_temp); + } + return 0; +} + /* Handle mbufs which are not segmented (non SG) */ static inline void tx_on_dpaa_pool_unsegmented(struct rte_mbuf *mbuf, @@ -460,6 +613,12 @@ tx_on_dpaa_pool(struct rte_mbuf *mbuf, if (mbuf->nb_segs == 1) { /* Case for non-segmented buffers */ tx_on_dpaa_pool_unsegmented(mbuf, bp_info, fd_arr); + } else if (mbuf->nb_segs > 1 && + mbuf->nb_segs <= DPAA_SGT_MAX_ENTRIES) { + if (dpaa_eth_mbuf_to_sg_fd(mbuf, fd_arr, bp_info->bpid)) { + DPAA_PMD_DEBUG("Unable to create Scatter Gather FD"); + return 1; + } } else { DPAA_PMD_DEBUG("Number of Segments not supported"); return 1; diff --git a/drivers/net/dpaa/dpaa_rxtx.h b/drivers/net/dpaa/dpaa_rxtx.h index d10298e..2ffc4ff 100644 --- a/drivers/net/dpaa/dpaa_rxtx.h +++ b/drivers/net/dpaa/dpaa_rxtx.h @@ -58,6 +58,8 @@ /* L4 Type field: TCP */ #define DPAA_L4_PARSE_RESULT_TCP 0x20 +#define DPAA_SGT_MAX_ENTRIES 16 /* maximum number of entries in SG Table */ + #define DPAA_MAX_DEQUEUE_NUM_FRAMES 63 /**