Skip to content

Commit

Permalink
netdev-dpdk: Move offloading code to a new file
Browse files Browse the repository at this point in the history
Hardware offloading code is moved to a new file called
netdev-rte-offloads.c. The original offloading code is copied
from the netdev-dpdk.c file to the new file, where future
offloading code should be added as well.
The copied code was refactored based on coding style.
The netdev-dpdk.c file will remain unchanged as new offloading
code is added.

Co-authored-by: Ophir Munk <ophirmu@mellanox.com>
Reviewed-by: Asaf Penso <asafp@mellanox.com>
Signed-off-by: Roni Bar Yanai <roniba@mellanox.com>
Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
  • Loading branch information
2 people authored and istokes committed Mar 19, 2019
1 parent 6775bdf commit 3d67b2d
Show file tree
Hide file tree
Showing 4 changed files with 775 additions and 693 deletions.
4 changes: 3 additions & 1 deletion lib/automake.mk
Expand Up @@ -138,6 +138,7 @@ lib_libopenvswitch_la_SOURCES = \
lib/netdev-dpdk.h \
lib/netdev-dummy.c \
lib/netdev-provider.h \
lib/netdev-rte-offloads.h \
lib/netdev-vport.c \
lib/netdev-vport.h \
lib/netdev-vport-private.h \
Expand Down Expand Up @@ -411,7 +412,8 @@ endif
if DPDK_NETDEV
lib_libopenvswitch_la_SOURCES += \
lib/dpdk.c \
lib/netdev-dpdk.c
lib/netdev-dpdk.c \
lib/netdev-rte-offloads.c
else
lib_libopenvswitch_la_SOURCES += \
lib/dpdk-stub.c
Expand Down

0 comments on commit 3d67b2d

Please sign in to comment.