search for: bypass_master_get_bymac

Displaying 14 results from an estimated 14 matches for "bypass_master_get_bymac".

2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...t;a PCI device is a VF in the guest kernel, we could restrict 'active' netdev to be a VF. > >Will look for any suggestions in the next day or two. If i don't get any, i will go >with 'stolen' > ><snip> > > >> + >> +static struct net_device *bypass_master_get_bymac(u8 *mac, >> + struct bypass_ops **ops) >> +{ >> + struct bypass_master *bypass_master; >> + struct net_device *bypass_netdev; >> + >> + spin_lock(&bypass_lock); >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> &gt...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...t;a PCI device is a VF in the guest kernel, we could restrict 'active' netdev to be a VF. > >Will look for any suggestions in the next day or two. If i don't get any, i will go >with 'stolen' > ><snip> > > >> + >> +static struct net_device *bypass_master_get_bymac(u8 *mac, >> + struct bypass_ops **ops) >> +{ >> + struct bypass_master *bypass_master; >> + struct net_device *bypass_netdev; >> + >> + spin_lock(&bypass_lock); >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> &gt...
2018 Apr 18
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...a VF. If there is a way to check that a PCI device is a VF in the guest kernel, we could restrict 'active' netdev to be a VF. Will look for any suggestions in the next day or two. If i don't get any, i will go with 'stolen' <snip> > + > +static struct net_device *bypass_master_get_bymac(u8 *mac, > + struct bypass_ops **ops) > +{ > + struct bypass_master *bypass_master; > + struct net_device *bypass_netdev; > + > + spin_lock(&bypass_lock); > + list_for_each_entry(bypass_master, &bypass_master_list, list) { >>> As I wrote the last time, y...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...sk_buff *skb = *pskb; >> > + struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data); >> > + >> > + skb->dev = ndev; >> > + >> > + return RX_HANDLER_ANOTHER; >> > +} >> > + >> > +static struct net_device *bypass_master_get_bymac(u8 *mac, >> > + struct bypass_ops **ops) >> > +{ >> > + struct bypass_master *bypass_master; >> > + struct net_device *bypass_netdev; >> > + >> > + spin_lock(&bypass_lock); >> > + list_for_each_entry(bypass_master, &bypas...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...sk_buff *skb = *pskb; >> > + struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data); >> > + >> > + skb->dev = ndev; >> > + >> > + return RX_HANDLER_ANOTHER; >> > +} >> > + >> > +static struct net_device *bypass_master_get_bymac(u8 *mac, >> > + struct bypass_ops **ops) >> > +{ >> > + struct bypass_master *bypass_master; >> > + struct net_device *bypass_netdev; >> > + >> > + spin_lock(&bypass_lock); >> > + list_for_each_entry(bypass_master, &bypas...
2018 Apr 18
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...e could restrict 'active' netdev to be a VF. > > > >Will look for any suggestions in the next day or two. If i don't get any, i will go > >with 'stolen' > > > ><snip> > > > > > >> + > >> +static struct net_device *bypass_master_get_bymac(u8 *mac, > >> + struct bypass_ops **ops) > >> +{ > >> + struct bypass_master *bypass_master; > >> + struct net_device *bypass_netdev; > >> + > >> + spin_lock(&bypass_lock); > >> + list_for_each_entry(bypass_master, &bypas...
2018 Apr 18
4
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...tdev to be a VF. >> > >> >Will look for any suggestions in the next day or two. If i don't get any, i will go >> >with 'stolen' >> > >> ><snip> >> > >> > >> >> + >> >> +static struct net_device *bypass_master_get_bymac(u8 *mac, >> >> + struct bypass_ops **ops) >> >> +{ >> >> + struct bypass_master *bypass_master; >> >> + struct net_device *bypass_netdev; >> >> + >> >> + spin_lock(&bypass_lock); >> >> + list_for_each_ent...
2018 Apr 18
4
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...tdev to be a VF. >> > >> >Will look for any suggestions in the next day or two. If i don't get any, i will go >> >with 'stolen' >> > >> ><snip> >> > >> > >> >> + >> >> +static struct net_device *bypass_master_get_bymac(u8 *mac, >> >> + struct bypass_ops **ops) >> >> +{ >> >> + struct bypass_master *bypass_master; >> >> + struct net_device *bypass_netdev; >> >> + >> >> + spin_lock(&bypass_lock); >> >> + list_for_each_ent...
2018 Apr 11
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
..._handler_result_t bypass_handle_frame(struct sk_buff **pskb) >+{ >+ struct sk_buff *skb = *pskb; >+ struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data); >+ >+ skb->dev = ndev; >+ >+ return RX_HANDLER_ANOTHER; >+} >+ >+static struct net_device *bypass_master_get_bymac(u8 *mac, >+ struct bypass_ops **ops) >+{ >+ struct bypass_master *bypass_master; >+ struct net_device *bypass_netdev; >+ >+ spin_lock(&bypass_lock); >+ list_for_each_entry(bypass_master, &bypass_master_list, list) { As I wrote the last time, you don't need t...
2018 Apr 11
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
..._handler_result_t bypass_handle_frame(struct sk_buff **pskb) >+{ >+ struct sk_buff *skb = *pskb; >+ struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data); >+ >+ skb->dev = ndev; >+ >+ return RX_HANDLER_ANOTHER; >+} >+ >+static struct net_device *bypass_master_get_bymac(u8 *mac, >+ struct bypass_ops **ops) >+{ >+ struct bypass_master *bypass_master; >+ struct net_device *bypass_netdev; >+ >+ spin_lock(&bypass_lock); >+ list_for_each_entry(bypass_master, &bypass_master_list, list) { As I wrote the last time, you don't need t...
2018 Apr 10
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...alled with rcu_read_lock + */ +static rx_handler_result_t bypass_handle_frame(struct sk_buff **pskb) +{ + struct sk_buff *skb = *pskb; + struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data); + + skb->dev = ndev; + + return RX_HANDLER_ANOTHER; +} + +static struct net_device *bypass_master_get_bymac(u8 *mac, + struct bypass_ops **ops) +{ + struct bypass_master *bypass_master; + struct net_device *bypass_netdev; + + spin_lock(&bypass_lock); + list_for_each_entry(bypass_master, &bypass_master_list, list) { + bypass_netdev = rcu_dereference(bypass_master->bypass_netdev); + if...
2018 Apr 11
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...ff **pskb) >> +{ >> + struct sk_buff *skb = *pskb; >> + struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data); >> + >> + skb->dev = ndev; >> + >> + return RX_HANDLER_ANOTHER; >> +} >> + >> +static struct net_device *bypass_master_get_bymac(u8 *mac, >> + struct bypass_ops **ops) >> +{ >> + struct bypass_master *bypass_master; >> + struct net_device *bypass_netdev; >> + >> + spin_lock(&bypass_lock); >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { > As I wr...
2018 Apr 10
6
[RFC PATCH net-next v6 0/4] Enable virtio_net to act as a backup for a passthru device
The main motivation for this patch is to enable cloud service providers to provide an accelerated datapath to virtio-net enabled VMs in a transparent manner with no/minimal guest userspace changes. This also enables hypervisor controlled live migration to be supported with VMs that have direct attached SR-IOV VF devices. Patch 1 introduces a new feature bit VIRTIO_NET_F_BACKUP that can be used
2018 Apr 18
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...gt; >>>> Will look for any suggestions in the next day or two. If i don't get any, i will go >>>> with 'stolen' >>>> >>>> <snip> >>>> >>>> >>>>> + >>>>> +static struct net_device *bypass_master_get_bymac(u8 *mac, >>>>> + struct bypass_ops **ops) >>>>> +{ >>>>> + struct bypass_master *bypass_master; >>>>> + struct net_device *bypass_netdev; >>>>> + >>>>> + spin_lock(&bypass_lock); >>>>&gt...