net/mvpp2: move common code
Cleanup sources by moving common code to the pmd header file. Signed-off-by: Tomasz Duszynski <tdu@semihalf.com> Signed-off-by: Natalie Samsonov <nsamsono@marvell.com> Reviewed-by: Liron Himi <lironh@marvell.com>
This commit is contained in:
parent
5997b0a827
commit
fad0cfe030
@ -10,15 +10,6 @@
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_bus_vdev.h>
|
||||
|
||||
/* Unluckily, container_of is defined by both DPDK and MUSDK,
|
||||
* we'll declare only one version.
|
||||
*
|
||||
* Note that it is not used in this PMD anyway.
|
||||
*/
|
||||
#ifdef container_of
|
||||
#undef container_of
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/sockios.h>
|
||||
|
@ -10,12 +10,23 @@
|
||||
#include <rte_spinlock.h>
|
||||
#include <rte_flow_driver.h>
|
||||
|
||||
/*
|
||||
* container_of is defined by both DPDK and MUSDK,
|
||||
* we'll declare only one version.
|
||||
*
|
||||
* Note that it is not used in this PMD anyway.
|
||||
*/
|
||||
#ifdef container_of
|
||||
#undef container_of
|
||||
#endif
|
||||
|
||||
#include <env/mv_autogen_comp_flags.h>
|
||||
#include <drivers/mv_pp2.h>
|
||||
#include <drivers/mv_pp2_bpool.h>
|
||||
#include <drivers/mv_pp2_cls.h>
|
||||
#include <drivers/mv_pp2_hif.h>
|
||||
#include <drivers/mv_pp2_ppio.h>
|
||||
#include "env/mv_common.h" /* for BIT() */
|
||||
|
||||
/** Maximum number of rx queues per port */
|
||||
#define MRVL_PP2_RXQ_MAX 32
|
||||
|
@ -11,13 +11,8 @@
|
||||
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#ifdef container_of
|
||||
#undef container_of
|
||||
#endif
|
||||
|
||||
#include "mrvl_ethdev.h"
|
||||
#include "mrvl_qos.h"
|
||||
#include "env/mv_common.h" /* for BIT() */
|
||||
|
||||
/** Number of rules in the classifier table. */
|
||||
#define MRVL_CLS_MAX_NUM_RULES 20
|
||||
|
@ -15,15 +15,6 @@
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_string_fns.h>
|
||||
|
||||
/* Unluckily, container_of is defined by both DPDK and MUSDK,
|
||||
* we'll declare only one version.
|
||||
*
|
||||
* Note that it is not used in this PMD anyway.
|
||||
*/
|
||||
#ifdef container_of
|
||||
#undef container_of
|
||||
#endif
|
||||
|
||||
#include "mrvl_qos.h"
|
||||
|
||||
/* Parsing tokens. Defined conveniently, so that any correction is easy. */
|
||||
|
Loading…
Reference in New Issue
Block a user