[v2,6/7] kni: replace unused variable definition with reserved bytes
Checks
Commit Message
PCI ID and address in structure rte_kni_conf are never used. And in
order not to break ABI, replace these variables with reserved bytes.
Signed-off-by: Chenbo Xia <chenbo.xia@intel.com>
---
lib/kni/rte_kni.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
@@ -17,7 +17,6 @@
* and burst transmit packets to KNI interfaces.
*/
-#include <rte_pci.h>
#include <rte_memory.h>
#include <rte_mempool.h>
#include <rte_ether.h>
@@ -66,8 +65,7 @@ struct rte_kni_conf {
uint32_t core_id; /* Core ID to bind kernel thread on */
uint16_t group_id; /* Group ID */
unsigned mbuf_size; /* mbuf size */
- struct rte_pci_addr addr; /* depreciated */
- struct rte_pci_id id; /* depreciated */
+ uint8_t rsvd[20];
__extension__
uint8_t force_bind : 1; /* Flag to bind kernel thread */