From 58f1ee52761a489322036f111793ddd8e85e197a Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Thu, 8 Sep 2016 12:04:59 +0300 Subject: APIs and functions in preparation for receive all mode. XL710/i350 mode toggling work. --- src/dpdk_funcs.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/dpdk_funcs.h (limited to 'src/dpdk_funcs.h') diff --git a/src/dpdk_funcs.h b/src/dpdk_funcs.h new file mode 100644 index 00000000..2db905ff --- /dev/null +++ b/src/dpdk_funcs.h @@ -0,0 +1,29 @@ +/* + Copyright (c) 2016-2016 Cisco Systems, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +#ifndef __DPDK_FUNCS__ +#define __DPDK_FUNCS__ + +enum i40e_trex_init_mode_ { + I40E_TREX_INIT_STL, + I40E_TREX_INIT_STF, + I40E_TREX_INIT_RCV_ALL, +}; + +void i40e_trex_dump_fdir_regs(struct i40e_hw *hw); +void i40e_trex_fdir_reg_init(int port_id, int mode); + +#endif -- cgit 1.2.3-korg