cxgbe: enable build on FreeBSD
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Mon, 20 Jul 2015 17:31:36 +0000 (23:01 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 22 Jul 2015 13:04:16 +0000 (15:04 +0200)
commit1f8613f16d5fc7b0fa85621d4c2917912cc2154d
tree9bc173bc334f02fba771e41f66f77cb91ef71005
parent82ecf62eded2429251b8e6773901a7fe2989fc86
cxgbe: enable build on FreeBSD

Fix "MACRO redefined" and "function redefined" compilation errors in FreeBSD
by adding CXGBE prefix to them.  Also remove reference to a linux header
linux/if_ether.h and use DPDK macros directly.  Finally, enable CXGBE PMD
for FreeBSD.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
config/common_bsdapp
drivers/net/cxgbe/base/common.h
drivers/net/cxgbe/base/t4_hw.c
drivers/net/cxgbe/cxgbe_compat.h
drivers/net/cxgbe/cxgbe_main.c
drivers/net/cxgbe/sge.c