diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-09-08 12:04:59 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-09-13 11:54:20 +0300 |
commit | 58f1ee52761a489322036f111793ddd8e85e197a (patch) | |
tree | 0381145a5b44e685c94a9723f6d75e3cfe924004 /src/dpdk_funcs.h | |
parent | 34a6b9050f9179e8000e54b0b3c07f054322c5a2 (diff) |
APIs and functions in preparation for receive all mode. XL710/i350 mode toggling work.
Diffstat (limited to 'src/dpdk_funcs.h')
-rw-r--r-- | src/dpdk_funcs.h | 29 |
1 files changed, 29 insertions, 0 deletions
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 |