net/nfp: rename files for consistency
Rename the nfp_net.c file to nfp_common as it now contains functions common to VF and PF functionality. Rename the header file too to be consistent. Also remove the "net" naming from the _ctrl and _logs files for consistency across the PMD. Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com> Signed-off-by: Simon Horman <simon.horman@corigine.com>
This commit is contained in:
parent
646ea79ce4
commit
8d7a59f171
@ -18,7 +18,7 @@ sources = files(
|
||||
'nfpcore/nfp_mutex.c',
|
||||
'nfpcore/nfp_nsp_eth.c',
|
||||
'nfpcore/nfp_hwinfo.c',
|
||||
'nfp_net.c',
|
||||
'nfp_common.c',
|
||||
'nfp_rxtx.c',
|
||||
'nfp_cpp_bridge.c',
|
||||
'nfp_ethdev_vf.c',
|
||||
|
@ -8,9 +8,9 @@
|
||||
/*
|
||||
* vim:shiftwidth=8:noexpandtab
|
||||
*
|
||||
* @file dpdk/pmd/nfp_net.c
|
||||
* @file dpdk/pmd/nfp_common.c
|
||||
*
|
||||
* Netronome vNIC DPDK Poll-Mode Driver: Main entry point
|
||||
* Netronome vNIC DPDK Poll-Mode Driver: Common files
|
||||
*/
|
||||
|
||||
#include <rte_byteorder.h>
|
@ -11,8 +11,8 @@
|
||||
* Netronome NFP_NET PMD driver
|
||||
*/
|
||||
|
||||
#ifndef _NFP_NET_PMD_H_
|
||||
#define _NFP_NET_PMD_H_
|
||||
#ifndef _NFP_COMMON_H_
|
||||
#define _NFP_COMMON_H_
|
||||
|
||||
#define NFP_NET_PMD_VERSION "0.1"
|
||||
#define PCI_VENDOR_ID_NETRONOME 0x19ee
|
||||
@ -396,7 +396,7 @@ int nfp_net_rss_config_default(struct rte_eth_dev *dev);
|
||||
#define NFP_NET_DEV_PRIVATE_TO_PF(dev_priv)\
|
||||
(((struct nfp_net_hw *)dev_priv)->pf_dev)
|
||||
|
||||
#endif /* _NFP_NET_PMD_H_ */
|
||||
#endif /* _NFP_COMMON_H_ */
|
||||
/*
|
||||
* Local variables:
|
||||
* c-file-style: "Linux"
|
@ -19,7 +19,7 @@
|
||||
#include "nfpcore/nfp_mip.h"
|
||||
#include "nfpcore/nfp_nsp.h"
|
||||
|
||||
#include "nfp_net_logs.h"
|
||||
#include "nfp_logs.h"
|
||||
#include "nfp_cpp_bridge.h"
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
* Netronome network device driver: Control BAR layout
|
||||
*/
|
||||
#ifndef _NFP_NET_CTRL_H_
|
||||
#define _NFP_NET_CTRL_H_
|
||||
#ifndef _NFP_CTRL_H_
|
||||
#define _NFP_CTRL_H_
|
||||
|
||||
/*
|
||||
* Configuration BAR size.
|
||||
@ -317,7 +317,7 @@
|
||||
/* PF multiport offset */
|
||||
#define NFP_PF_CSR_SLICE_SIZE (32 * 1024)
|
||||
|
||||
#endif /* _NFP_NET_CTRL_H_ */
|
||||
#endif /* _NFP_CTRL_H_ */
|
||||
/*
|
||||
* Local variables:
|
||||
* c-file-style: "Linux"
|
@ -31,10 +31,10 @@
|
||||
#include "nfpcore/nfp_rtsym.h"
|
||||
#include "nfpcore/nfp_nsp.h"
|
||||
|
||||
#include "nfp_net_pmd.h"
|
||||
#include "nfp_common.h"
|
||||
#include "nfp_rxtx.h"
|
||||
#include "nfp_net_logs.h"
|
||||
#include "nfp_net_ctrl.h"
|
||||
#include "nfp_logs.h"
|
||||
#include "nfp_ctrl.h"
|
||||
#include "nfp_cpp_bridge.h"
|
||||
|
||||
|
||||
|
@ -16,10 +16,10 @@
|
||||
#include "nfpcore/nfp_mip.h"
|
||||
#include "nfpcore/nfp_rtsym.h"
|
||||
|
||||
#include "nfp_net_pmd.h"
|
||||
#include "nfp_common.h"
|
||||
#include "nfp_rxtx.h"
|
||||
#include "nfp_net_logs.h"
|
||||
#include "nfp_net_ctrl.h"
|
||||
#include "nfp_logs.h"
|
||||
#include "nfp_ctrl.h"
|
||||
|
||||
static void nfp_netvf_read_mac(struct nfp_net_hw *hw);
|
||||
static int nfp_netvf_start(struct rte_eth_dev *dev);
|
||||
|
@ -3,8 +3,8 @@
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _NFP_NET_LOGS_H_
|
||||
#define _NFP_NET_LOGS_H_
|
||||
#ifndef _NFP_LOGS_H_
|
||||
#define _NFP_LOGS_H_
|
||||
|
||||
#include <rte_log.h>
|
||||
|
||||
@ -37,4 +37,4 @@ extern int nfp_logtype_driver;
|
||||
rte_log(RTE_LOG_ ## level, nfp_logtype_driver, \
|
||||
"%s(): " fmt "\n", __func__, ## args)
|
||||
|
||||
#endif /* _NFP_NET_LOGS_H_ */
|
||||
#endif /* _NFP_LOGS_H_ */
|
@ -16,10 +16,10 @@
|
||||
#include <ethdev_driver.h>
|
||||
#include <ethdev_pci.h>
|
||||
|
||||
#include "nfp_net_pmd.h"
|
||||
#include "nfp_common.h"
|
||||
#include "nfp_rxtx.h"
|
||||
#include "nfp_net_logs.h"
|
||||
#include "nfp_net_ctrl.h"
|
||||
#include "nfp_logs.h"
|
||||
#include "nfp_ctrl.h"
|
||||
|
||||
/* Prototypes */
|
||||
static int nfp_net_rx_fill_freelist(struct nfp_net_rxq *rxq);
|
||||
|
Loading…
Reference in New Issue
Block a user