[dpdk-dev] getting pointer for struct ixgbe_hw

Ananyev, Konstantin konstantin.ananyev at intel.com
Mon Sep 21 16:41:29 CEST 2015


Hi Serguei,

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Serguei Bezverkhi (sbezverk)
> Sent: Monday, September 21, 2015 3:12 PM
> To: Van Haaren, Harry; dev at dpdk.org
> Subject: Re: [dpdk-dev] getting pointer for struct ixgbe_hw
> 
> Hi Harry,
> 
> Thank you for your reply. The reason I was looking for specifically  ixgbe_hw because I needed access to ixgbe PF/VF mailbox facility. I
> am not sure if it is exposed via rte_eth api. Please advise.

You are not supposed to send/recv messages via HW mailbox directly from the user application.
To configure device there exists rte_eth* API. 
Wonder what exactly you are trying to achieve?
Konstantin

> 
> Best regards
> 
> Serguei
> 
> 
> Serguei Bezverkhi,
> TECHNICAL LEADER.SERVICES
> Global SP Services
> sbezverk at cisco.com
> Phone: +1 416 306 7312
> Mobile: +1 514 234 7374
> 
> CCIE (R&S,SP,Sec) - #9527
> 
> Cisco.com
> 
> 
> 
>  Think before you print.
> This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or
> disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please
> contact the sender by reply email and delete all copies of this message.
> Please click here for Company Registration Information.
> 
> 
> 
> -----Original Message-----
> From: Van Haaren, Harry [mailto:harry.van.haaren at intel.com]
> Sent: Monday, September 21, 2015 10:06 AM
> To: Serguei Bezverkhi (sbezverk) <sbezverk at cisco.com>; dev at dpdk.org
> Subject: RE: getting pointer for struct ixgbe_hw
> 
> Hi Serguei,
> 
> > From: Serguei Bezverkhi
> > I would appreciate if somebody could share an example of getting
> > access to ixgbe_hw structure for already initialized ixgbe nic. I
> > tried to find any references but could not find any API returning pointer for this structure.
> 
> The ixgbe_hw struct is part of the implementation, and should not be used by code outside the drivers/net/ixgbe director. The
> rte_eth_* api[1] is available to access any NIC using a unified API.
> 
> Hope that helps, -Harry
> 
> [1] http://www.dpdk.org/doc/api/rte__ethdev_8h.html


More information about the dev mailing list