Skip to content

Commit

Permalink
Smart-nic offload support
Browse files Browse the repository at this point in the history
Partial-bug: #1781402
Support for compilation with 18.05 dpdk

Change-Id: I052487d294cc83b9edc4796ff0b5fde0249b4925
  • Loading branch information
Jeya ganesh babu J committed Nov 20, 2018
1 parent 7286617 commit a99ff96
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SConscript
Expand Up @@ -234,9 +234,12 @@ if sys.platform != 'darwin':
else:
rte_libs = ('-lrte_ethdev',)

year_matches = re.findall("define RTE_VER_YEAR 17", file_content)
month_matches = re.findall("define RTE_VER_MONTH 11", file_content)
if year_matches and month_matches:
year_matches = re.findall("define RTE_VER_YEAR .*", file_content)
month_matches = re.findall("define RTE_VER_MONTH .*", file_content)
year = int(year_matches[0].split(" ")[2])
month = int(month_matches[0].split(" ")[2])

if (year > 17) or (year == 17 and month >= 11):
rte_libs = rte_libs + ('-lrte_mempool_ring', '-lrte_bus_pci', '-lrte_pci', '-lrte_bus_vdev')

#
Expand Down

0 comments on commit a99ff96

Please sign in to comment.