Re: [PATCH V3 net-next 1/2] liquidio: switchdev support for LiquidIO NIC

2017-11-01 Thread Jakub Kicinski
On Wed, 1 Nov 2017 12:29:48 -0700, Felix Manlunas wrote: > > > +lio_vf_rep_phys_port_name(struct net_device *dev, > > > + char *buf, size_t len) > > > +{ > > > + struct lio_vf_rep_desc *vf_rep = netdev_priv(dev); > > > + struct octeon_device *oct = vf_rep->oct; > > > + int ret; >

Re: [PATCH V3 net-next 1/2] liquidio: switchdev support for LiquidIO NIC

2017-11-01 Thread Felix Manlunas
On Wed, Nov 01, 2017 at 02:02:07PM +0100, Andrew Lunn wrote: > > +static int > > +lio_pf_switchdev_attr_get(struct net_device *dev, struct switchdev_attr > > *attr) > > +{ > > + struct lio *lio = GET_LIO(dev); > > + > > + switch (attr->id) { > > + case SWITCHDEV_ATTR_ID_PORT_PARENT_ID: > > +

Re: [PATCH V3 net-next 1/2] liquidio: switchdev support for LiquidIO NIC

2017-11-01 Thread Andrew Lunn
> +static int > +lio_pf_switchdev_attr_get(struct net_device *dev, struct switchdev_attr > *attr) > +{ > + struct lio *lio = GET_LIO(dev); > + > + switch (attr->id) { > + case SWITCHDEV_ATTR_ID_PORT_PARENT_ID: > + attr->u.ppid.id_len = ETH_ALEN; > + ether_addr_c

[PATCH V3 net-next 1/2] liquidio: switchdev support for LiquidIO NIC

2017-10-31 Thread Felix Manlunas
From: Vijaya Mohan Guvva Enable switchdev for SRIOV capable LiquidIO NIC. It registers a representor netdev (with switchdev_ops) for each SRIOV VF created. It also has changes to send representor interface configurations like admin state and MTU to LiquidIO firmware and to retrieve HW counted VF