On 11/13/2019 7:08 AM, Rosen Xu wrote: > From: Andy Pei <andy....@intel.com> > > In ipn3ke, each FPGA network side port bonding to an i40e pf, > each i40e pf link status should get data from FPGA network, > side port. This patch provide bonding relationship. > > Signed-off-by: Rosen Xu <rosen...@intel.com> > Signed-off-by: Andy Pei <andy....@intel.com>
<...> > @@ -1061,4 +1061,22 @@ int rte_pmd_i40e_inset_set(uint16_t port, uint8_t > pctype, > return 0; > } > > +/** > + * For ipn3ke, i40e works with FPGA. > + * In this situation, i40e get link status from fpga, > + * fpga works as switch_dev for i40e. > + * This function set switch_dev for i40e. > + * > + * @param inset > + * Input set value. > + * @param field_idx > + * Field index for input set. These params are wrong, can you please provide proper information, I can update them in next-net? > + * @return > + * - (less than 0) if failed. > + * - (0) if success. > + */ > +__rte_experimental > +int > +rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev > *switch_dev); > + > #endif /* _PMD_I40E_H_ */ > diff --git a/drivers/net/i40e/rte_pmd_i40e_version.map > b/drivers/net/i40e/rte_pmd_i40e_version.map > index cccd576..79641f2 100644 > --- a/drivers/net/i40e/rte_pmd_i40e_version.map > +++ b/drivers/net/i40e/rte_pmd_i40e_version.map > @@ -64,4 +64,10 @@ DPDK_18.02 { > > rte_pmd_i40e_inset_get; > rte_pmd_i40e_inset_set; > -} DPDK_17.11; > \ No newline at end of file > +} DPDK_17.11; > + > +EXPERIMENTAL { > + global: > + > + rte_pmd_i40e_set_switch_dev; > +} DPDK_18.02; The 'DPDK_18.02' part is not required for experimental block, I will remove it while merging.