Re: [SR-IOV driver example 2/3] PF driver: integrate with SR-IOV core

2008-12-01 Thread Yu Zhao
On Thu, Nov 27, 2008 at 01:54:27AM +0800, Chris Wright wrote: > * Greg KH ([EMAIL PROTECTED]) wrote: > > > +static int > > > +igb_virtual(struct pci_dev *pdev, int nr_virtfn) > > > +{ > > > + unsigned char my_mac_addr[6] = {0x00, 0xDE, 0xAD, 0xBE, 0xEF, 0xFF}; > > > + struct net_device *netdev =

Re: [SR-IOV driver example 2/3] PF driver: integrate with SR-IOV core

2008-12-01 Thread Yu Zhao
On Thu, Nov 27, 2008 at 12:58:59AM +0800, Greg KH wrote: > On Wed, Nov 26, 2008 at 10:21:56PM +0800, Yu Zhao wrote: > > + my_mac_addr[5] = (unsigned char)i; > > + igb_set_vf_mac(netdev, i, my_mac_addr); > > + igb_set_vf_vmolr(adapter, i); > > +

Re: [SR-IOV driver example 2/3] PF driver: integrate with SR-IOV core

2008-11-26 Thread Greg KH
On Wed, Nov 26, 2008 at 11:27:10AM -0800, Nakajima, Jun wrote: > On 11/26/2008 8:58:59 AM, Greg KH wrote: > > On Wed, Nov 26, 2008 at 10:21:56PM +0800, Yu Zhao wrote: > > > This patch integrates the IGB driver with the SR-IOV core. It shows > > > how the SR-IOV API is used to support the capability

RE: [SR-IOV driver example 2/3] PF driver: integrate with SR-IOV core

2008-11-26 Thread Nakajima, Jun
On 11/26/2008 8:58:59 AM, Greg KH wrote: > On Wed, Nov 26, 2008 at 10:21:56PM +0800, Yu Zhao wrote: > > This patch integrates the IGB driver with the SR-IOV core. It shows > > how the SR-IOV API is used to support the capability. Obviously > > people does not need to put much effort to integrate th

Re: [SR-IOV driver example 2/3] PF driver: integrate with SR-IOV core

2008-11-26 Thread Chris Wright
* Greg KH ([EMAIL PROTECTED]) wrote: > > +static int > > +igb_virtual(struct pci_dev *pdev, int nr_virtfn) > > +{ > > + unsigned char my_mac_addr[6] = {0x00, 0xDE, 0xAD, 0xBE, 0xEF, 0xFF}; > > + struct net_device *netdev = pci_get_drvdata(pdev); > > + struct igb_adapter *adapter = netdev_

Re: [SR-IOV driver example 2/3] PF driver: integrate with SR-IOV core

2008-11-26 Thread Greg KH
On Wed, Nov 26, 2008 at 10:21:56PM +0800, Yu Zhao wrote: > This patch integrates the IGB driver with the SR-IOV core. It shows how > the SR-IOV API is used to support the capability. Obviously people does > not need to put much effort to integrate the PF driver with SR-IOV core. > All SR-IOV standa

[SR-IOV driver example 2/3] PF driver: integrate with SR-IOV core

2008-11-26 Thread Yu Zhao
This patch integrates the IGB driver with the SR-IOV core. It shows how the SR-IOV API is used to support the capability. Obviously people does not need to put much effort to integrate the PF driver with SR-IOV core. All SR-IOV standard stuff are handled by SR-IOV core and PF driver only concerns t