From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ye Xiaolong Subject: Re: [PATCH v8 1/1] net/af_xdp: introduce AF XDP PMD driver Date: Tue, 2 Apr 2019 23:10:27 +0800 Message-ID: <20190402151027.GA110864@intel.com> References: <20190301080947.91086-1-xiaolong.ye@intel.com> <20190402104554.110516-1-xiaolong.ye@intel.com> <20190402104554.110516-2-xiaolong.ye@intel.com> <20190402075806.7523ad34@shemminger-XPS-13-9360> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, David Marchand , Andrew Rybchenko , Olivier Matz , Qi Zhang , Karlsson Magnus , Topel Bjorn , Maxime Coquelin , Ferruh Yigit , Luca Boccassi , Bruce Richardson , Ananyev Konstantin To: Stephen Hemminger Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0205A4C93 for ; Tue, 2 Apr 2019 17:15:18 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20190402075806.7523ad34@shemminger-XPS-13-9360> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 04/02, Stephen Hemminger wrote: >On Tue, 2 Apr 2019 18:45:54 +0800 >Xiaolong Ye wrote: > >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include > >The ordering here seems surprising. The usual ordering is: > >Libc includes: >#include >... >Sys includes: >#include > >Linux includes: >#include > >DPDK includes: >#include > > >If I run "Include what you use" it has different suggestions. >Some of which you should ignore but overall there are >several good ones. > >rte_eth_af_xdp.c should add these lines: >#include // for __u64 >#include // for uint16_t, uint64_t, uint32_t >#include // for EINVAL, errno, EAGAIN, ENOMEM, EBUSY >#include // for IPPROTO_IP >#include // for rte_eth_dev, rte_eth_dev_data >#include // for strtol >#include // for NULL, memset, strlen >#include "rte_branch_prediction.h" // for unlikely >#include "rte_common.h" // for __rte_unused, RTE_MIN, RTE_PRIORI... >#include "rte_config.h" // for RTE_PKTMBUF_HEADROOM >#include "rte_dev.h" // for rte_device, RTE_PMD_REGISTER_PARA... >#include "rte_eal.h" // for rte_eal_process_type, rte_proc_ty... >#include "rte_ethdev.h" // for rte_eth_stats, rte_eth_dev_info >#include "rte_ether.h" // for ETHER_ADDR_LEN, ether_addr >#include "rte_lcore.h" // for rte_socket_id >#include "rte_log.h" // for rte_log, RTE_LOG_ERR, RTE_LOG_INFO >#include "rte_memory.h" // for SOCKET_ID_ANY >#include "rte_memzone.h" // for rte_memzone_free, RTE_MEMZONE_IOV... >#include "rte_ring.h" // for rte_ring_free, rte_ring_create >struct rte_mempool; > >rte_eth_af_xdp.c should remove these lines: >- #include // lines 17-17 >- #include // lines 24-24 >- #include // lines 7-7 >- #include // lines 22-22 >- #include // lines 19-19 > Thanks for pointing out, I'll adjust the headers. Thanks, Xiaolong > > >