Message ID | 1312082850-24914-18-git-send-email-jeffrey.t.kirsher@intel.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
On Sat, Jul 30, 2011 at 10:26 PM, Jeff Kirsher <jeffrey.t.kirsher@intel.com> wrote: > Move the Myricom drivers into drivers/net/ethernet/myricom/ and make > the necessary Kconfig and Makefile changes. Acked-by: Jon Mason <mason@myri.com> > CC: Andrew Gallatin <gallatin@myri.com> > CC: Brice Goglin <brice@myri.com> > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> > --- > MAINTAINERS | 2 +- > drivers/net/Kconfig | 26 ------------ > drivers/net/Makefile | 1 - > drivers/net/ethernet/Kconfig | 1 + > drivers/net/ethernet/Makefile | 1 + > drivers/net/ethernet/myricom/Kconfig | 42 ++++++++++++++++++++ > drivers/net/ethernet/myricom/Makefile | 5 ++ > .../net/{ => ethernet/myricom}/myri10ge/Makefile | 0 > .../net/{ => ethernet/myricom}/myri10ge/myri10ge.c | 0 > .../{ => ethernet/myricom}/myri10ge/myri10ge_mcp.h | 0 > .../myricom}/myri10ge/myri10ge_mcp_gen_header.h | 0 > 11 files changed, 50 insertions(+), 28 deletions(-) > create mode 100644 drivers/net/ethernet/myricom/Kconfig > create mode 100644 drivers/net/ethernet/myricom/Makefile > rename drivers/net/{ => ethernet/myricom}/myri10ge/Makefile (100%) > rename drivers/net/{ => ethernet/myricom}/myri10ge/myri10ge.c (100%) > rename drivers/net/{ => ethernet/myricom}/myri10ge/myri10ge_mcp.h (100%) > rename drivers/net/{ => ethernet/myricom}/myri10ge/myri10ge_mcp_gen_header.h (100%) > > diff --git a/MAINTAINERS b/MAINTAINERS > index ddec2eb..3423692 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -4308,7 +4308,7 @@ M: Andrew Gallatin <gallatin@myri.com> > L: netdev@vger.kernel.org > W: http://www.myri.com/scs/download-Myri10GE.html > S: Supported > -F: drivers/net/myri10ge/ > +F: drivers/net/ethernet/myricom/myri10ge/ > > NATSEMI ETHERNET DRIVER (DP8381x) > M: Tim Hockin <thockin@hockin.org> > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > index 56c033a..38fcaea 100644 > --- a/drivers/net/Kconfig > +++ b/drivers/net/Kconfig > @@ -1519,32 +1519,6 @@ config VXGE_DEBUG_TRACE_ALL > the vxge driver. By default only few debug trace statements are > enabled. > > -config MYRI10GE > - tristate "Myricom Myri-10G Ethernet support" > - depends on PCI && INET > - select FW_LOADER > - select CRC32 > - select INET_LRO > - ---help--- > - This driver supports Myricom Myri-10G Dual Protocol interface in > - Ethernet mode. If the eeprom on your board is not recent enough, > - you will need a newer firmware image. > - You may get this image or more information, at: > - > - <http://www.myri.com/scs/download-Myri10GE.html> > - > - To compile this driver as a module, choose M here. The module > - will be called myri10ge. > - > -config MYRI10GE_DCA > - bool "Direct Cache Access (DCA) Support" > - default y > - depends on MYRI10GE && DCA && !(MYRI10GE=y && DCA=m) > - ---help--- > - Say Y here if you want to use Direct Cache Access (DCA) in the > - driver. DCA is a method for warming the CPU cache before data > - is used, with the intent of lessening the impact of cache misses. > - > config PASEMI_MAC > tristate "PA Semi 1/10Gbit MAC" > depends on PPC_PASEMI && PCI && INET > diff --git a/drivers/net/Makefile b/drivers/net/Makefile > index 73e357e..b9e1f5a 100644 > --- a/drivers/net/Makefile > +++ b/drivers/net/Makefile > @@ -151,7 +151,6 @@ obj-$(CONFIG_R8169) += r8169.o > obj-$(CONFIG_IBMVETH) += ibmveth.o > obj-$(CONFIG_S2IO) += s2io.o > obj-$(CONFIG_VXGE) += vxge/ > -obj-$(CONFIG_MYRI10GE) += myri10ge/ > obj-$(CONFIG_PXA168_ETH) += pxa168_eth.o > obj-$(CONFIG_BFIN_MAC) += bfin_mac.o > obj-$(CONFIG_DM9000) += dm9000.o > diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig > index 8bbddc9..ce3040d 100644 > --- a/drivers/net/ethernet/Kconfig > +++ b/drivers/net/ethernet/Kconfig > @@ -21,6 +21,7 @@ source "drivers/net/ethernet/emulex/Kconfig" > source "drivers/net/ethernet/intel/Kconfig" > source "drivers/net/ethernet/i825xx/Kconfig" > source "drivers/net/ethernet/mellanox/Kconfig" > +source "drivers/net/ethernet/myricom/Kconfig" > source "drivers/net/ethernet/qlogic/Kconfig" > source "drivers/net/ethernet/racal/Kconfig" > source "drivers/net/ethernet/sfc/Kconfig" > diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile > index e5f2954..b4dcb93 100644 > --- a/drivers/net/ethernet/Makefile > +++ b/drivers/net/ethernet/Makefile > @@ -12,6 +12,7 @@ obj-$(CONFIG_NET_VENDOR_EMULEX) += emulex/ > obj-$(CONFIG_NET_VENDOR_INTEL) += intel/ > obj-$(CONFIG_NET_VENDOR_I825XX) += i825xx/ > obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/ > +obj-$(CONFIG_NET_VENDOR_MYRI) += myricom/ > obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/ > obj-$(CONFIG_NET_VENDOR_RACAL) += racal/ > obj-$(CONFIG_SFC) += sfc/ > diff --git a/drivers/net/ethernet/myricom/Kconfig b/drivers/net/ethernet/myricom/Kconfig > new file mode 100644 > index 0000000..8dc4241 > --- /dev/null > +++ b/drivers/net/ethernet/myricom/Kconfig > @@ -0,0 +1,42 @@ > +# > +# Myricom device configuration > +# > + > +config NET_VENDOR_MYRI > + bool "Myricom devices" > + depends on PCI || INET > + ---help--- > + If you have a network (Ethernet) card belonging to this class, say > + Y and read the Ethernet-HOWTO, available from > + <http://www.tldp.org/docs.html#howto>. > + > + Note that the answer to this question doesn't directly affect the > + kernel: saying N will just cause the configurator to skip all > + the questions about Myricom cards. If you say Y, you will be asked for > + your specific card in the following questions. > + > +config MYRI10GE > + tristate "Myricom Myri-10G Ethernet support" > + depends on NET_VENDOR_MYRI && PCI && INET > + select FW_LOADER > + select CRC32 > + select INET_LRO > + ---help--- > + This driver supports Myricom Myri-10G Dual Protocol interface in > + Ethernet mode. If the eeprom on your board is not recent enough, > + you will need a newer firmware image. > + You may get this image or more information, at: > + > + <http://www.myri.com/scs/download-Myri10GE.html> > + > + To compile this driver as a module, choose M here. The module > + will be called myri10ge. > + > +config MYRI10GE_DCA > + bool "Direct Cache Access (DCA) Support" > + default y > + depends on MYRI10GE && DCA && !(MYRI10GE=y && DCA=m) > + ---help--- > + Say Y here if you want to use Direct Cache Access (DCA) in the > + driver. DCA is a method for warming the CPU cache before data > + is used, with the intent of lessening the impact of cache misses. > diff --git a/drivers/net/ethernet/myricom/Makefile b/drivers/net/ethernet/myricom/Makefile > new file mode 100644 > index 0000000..296c0a1 > --- /dev/null > +++ b/drivers/net/ethernet/myricom/Makefile > @@ -0,0 +1,5 @@ > +# > +# Makefile for the Myricom network device drivers. > +# > + > +obj-$(CONFIG_MYRI10GE) += myri10ge/ > diff --git a/drivers/net/myri10ge/Makefile b/drivers/net/ethernet/myricom/myri10ge/Makefile > similarity index 100% > rename from drivers/net/myri10ge/Makefile > rename to drivers/net/ethernet/myricom/myri10ge/Makefile > diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c > similarity index 100% > rename from drivers/net/myri10ge/myri10ge.c > rename to drivers/net/ethernet/myricom/myri10ge/myri10ge.c > diff --git a/drivers/net/myri10ge/myri10ge_mcp.h b/drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp.h > similarity index 100% > rename from drivers/net/myri10ge/myri10ge_mcp.h > rename to drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp.h > diff --git a/drivers/net/myri10ge/myri10ge_mcp_gen_header.h b/drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp_gen_header.h > similarity index 100% > rename from drivers/net/myri10ge/myri10ge_mcp_gen_header.h > rename to drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp_gen_header.h > -- > 1.7.6 > > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, 2011-08-01 at 10:09 -0700, Jon Mason wrote: > On Sat, Jul 30, 2011 at 10:26 PM, Jeff Kirsher > <jeffrey.t.kirsher@intel.com> wrote: > > Move the Myricom drivers into drivers/net/ethernet/myricom/ and make > > the necessary Kconfig and Makefile changes. > > Acked-by: Jon Mason <mason@myri.com> > > > CC: Andrew Gallatin <gallatin@myri.com> > > CC: Brice Goglin <brice@myri.com> > > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Jon- I made some minor changes to the Kconfig based on feedback from others on other Kconfig's which made sense to apply to the other driver Kconfig's. Here is the Kconfig: +config NET_VENDOR_MYRI + bool "Myricom devices" + depends on PCI && INET + ---help--- + If you have a network (Ethernet) card belonging to this class, say + Y and read the Ethernet-HOWTO, available from + <http://www.tldp.org/docs.html#howto>. + + Note that the answer to this question doesn't directly affect the + kernel: saying N will just cause the configurator to skip all + the questions about Myricom cards. If you say Y, you will be asked for + your specific card in the following questions. + +if NET_VENDOR_MYRI + +config MYRI10GE + tristate "Myricom Myri-10G Ethernet support" + depends on PCI && INET + select FW_LOADER + select CRC32 + select INET_LRO + ---help--- + This driver supports Myricom Myri-10G Dual Protocol interface in + Ethernet mode. If the eeprom on your board is not recent enough, + you will need a newer firmware image. + You may get this image or more information, at: + + <http://www.myri.com/scs/download-Myri10GE.html> + + To compile this driver as a module, choose M here. The module + will be called myri10ge. + +config MYRI10GE_DCA + bool "Direct Cache Access (DCA) Support" + default y + depends on MYRI10GE && DCA && !(MYRI10GE=y && DCA=m) + ---help--- + Say Y here if you want to use Direct Cache Access (DCA) in the + driver. DCA is a method for warming the CPU cache before data + is used, with the intent of lessening the impact of cache misses. + +endif # NET_VENDOR_MYRI Let me know if these changes are ok and I can add your ACK.
On Wed, Aug 3, 2011 at 1:02 AM, Jeff Kirsher <jeffrey.t.kirsher@intel.com> wrote: > On Mon, 2011-08-01 at 10:09 -0700, Jon Mason wrote: >> On Sat, Jul 30, 2011 at 10:26 PM, Jeff Kirsher >> <jeffrey.t.kirsher@intel.com> wrote: >> > Move the Myricom drivers into drivers/net/ethernet/myricom/ and make >> > the necessary Kconfig and Makefile changes. >> >> Acked-by: Jon Mason <mason@myri.com> >> >> > CC: Andrew Gallatin <gallatin@myri.com> >> > CC: Brice Goglin <brice@myri.com> >> > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> > > Jon- > > I made some minor changes to the Kconfig based on feedback from others > on other Kconfig's which made sense to apply to the other driver > Kconfig's. Here is the Kconfig: > > +config NET_VENDOR_MYRI > + bool "Myricom devices" > + depends on PCI && INET > + ---help--- > + If you have a network (Ethernet) card belonging to this class, > say > + Y and read the Ethernet-HOWTO, available from > + <http://www.tldp.org/docs.html#howto>. > + > + Note that the answer to this question doesn't directly affect > the > + kernel: saying N will just cause the configurator to skip all > + the questions about Myricom cards. If you say Y, you will be > asked for > + your specific card in the following questions. > + > +if NET_VENDOR_MYRI > + > +config MYRI10GE > + tristate "Myricom Myri-10G Ethernet support" > + depends on PCI && INET > + select FW_LOADER > + select CRC32 > + select INET_LRO > + ---help--- > + This driver supports Myricom Myri-10G Dual Protocol interface > in > + Ethernet mode. If the eeprom on your board is not recent > enough, > + you will need a newer firmware image. > + You may get this image or more information, at: > + > + <http://www.myri.com/scs/download-Myri10GE.html> > + > + To compile this driver as a module, choose M here. The module > + will be called myri10ge. > + > +config MYRI10GE_DCA > + bool "Direct Cache Access (DCA) Support" > + default y > + depends on MYRI10GE && DCA && !(MYRI10GE=y && DCA=m) > + ---help--- > + Say Y here if you want to use Direct Cache Access (DCA) in the > + driver. DCA is a method for warming the CPU cache before data > + is used, with the intent of lessening the impact of cache > misses. > + > +endif # NET_VENDOR_MYRI > > Let me know if these changes are ok and I can add your ACK. Looks fine to me. Thanks, Jon -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/MAINTAINERS b/MAINTAINERS index ddec2eb..3423692 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4308,7 +4308,7 @@ M: Andrew Gallatin <gallatin@myri.com> L: netdev@vger.kernel.org W: http://www.myri.com/scs/download-Myri10GE.html S: Supported -F: drivers/net/myri10ge/ +F: drivers/net/ethernet/myricom/myri10ge/ NATSEMI ETHERNET DRIVER (DP8381x) M: Tim Hockin <thockin@hockin.org> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 56c033a..38fcaea 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -1519,32 +1519,6 @@ config VXGE_DEBUG_TRACE_ALL the vxge driver. By default only few debug trace statements are enabled. -config MYRI10GE - tristate "Myricom Myri-10G Ethernet support" - depends on PCI && INET - select FW_LOADER - select CRC32 - select INET_LRO - ---help--- - This driver supports Myricom Myri-10G Dual Protocol interface in - Ethernet mode. If the eeprom on your board is not recent enough, - you will need a newer firmware image. - You may get this image or more information, at: - - <http://www.myri.com/scs/download-Myri10GE.html> - - To compile this driver as a module, choose M here. The module - will be called myri10ge. - -config MYRI10GE_DCA - bool "Direct Cache Access (DCA) Support" - default y - depends on MYRI10GE && DCA && !(MYRI10GE=y && DCA=m) - ---help--- - Say Y here if you want to use Direct Cache Access (DCA) in the - driver. DCA is a method for warming the CPU cache before data - is used, with the intent of lessening the impact of cache misses. - config PASEMI_MAC tristate "PA Semi 1/10Gbit MAC" depends on PPC_PASEMI && PCI && INET diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 73e357e..b9e1f5a 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -151,7 +151,6 @@ obj-$(CONFIG_R8169) += r8169.o obj-$(CONFIG_IBMVETH) += ibmveth.o obj-$(CONFIG_S2IO) += s2io.o obj-$(CONFIG_VXGE) += vxge/ -obj-$(CONFIG_MYRI10GE) += myri10ge/ obj-$(CONFIG_PXA168_ETH) += pxa168_eth.o obj-$(CONFIG_BFIN_MAC) += bfin_mac.o obj-$(CONFIG_DM9000) += dm9000.o diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index 8bbddc9..ce3040d 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig @@ -21,6 +21,7 @@ source "drivers/net/ethernet/emulex/Kconfig" source "drivers/net/ethernet/intel/Kconfig" source "drivers/net/ethernet/i825xx/Kconfig" source "drivers/net/ethernet/mellanox/Kconfig" +source "drivers/net/ethernet/myricom/Kconfig" source "drivers/net/ethernet/qlogic/Kconfig" source "drivers/net/ethernet/racal/Kconfig" source "drivers/net/ethernet/sfc/Kconfig" diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile index e5f2954..b4dcb93 100644 --- a/drivers/net/ethernet/Makefile +++ b/drivers/net/ethernet/Makefile @@ -12,6 +12,7 @@ obj-$(CONFIG_NET_VENDOR_EMULEX) += emulex/ obj-$(CONFIG_NET_VENDOR_INTEL) += intel/ obj-$(CONFIG_NET_VENDOR_I825XX) += i825xx/ obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/ +obj-$(CONFIG_NET_VENDOR_MYRI) += myricom/ obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/ obj-$(CONFIG_NET_VENDOR_RACAL) += racal/ obj-$(CONFIG_SFC) += sfc/ diff --git a/drivers/net/ethernet/myricom/Kconfig b/drivers/net/ethernet/myricom/Kconfig new file mode 100644 index 0000000..8dc4241 --- /dev/null +++ b/drivers/net/ethernet/myricom/Kconfig @@ -0,0 +1,42 @@ +# +# Myricom device configuration +# + +config NET_VENDOR_MYRI + bool "Myricom devices" + depends on PCI || INET + ---help--- + If you have a network (Ethernet) card belonging to this class, say + Y and read the Ethernet-HOWTO, available from + <http://www.tldp.org/docs.html#howto>. + + Note that the answer to this question doesn't directly affect the + kernel: saying N will just cause the configurator to skip all + the questions about Myricom cards. If you say Y, you will be asked for + your specific card in the following questions. + +config MYRI10GE + tristate "Myricom Myri-10G Ethernet support" + depends on NET_VENDOR_MYRI && PCI && INET + select FW_LOADER + select CRC32 + select INET_LRO + ---help--- + This driver supports Myricom Myri-10G Dual Protocol interface in + Ethernet mode. If the eeprom on your board is not recent enough, + you will need a newer firmware image. + You may get this image or more information, at: + + <http://www.myri.com/scs/download-Myri10GE.html> + + To compile this driver as a module, choose M here. The module + will be called myri10ge. + +config MYRI10GE_DCA + bool "Direct Cache Access (DCA) Support" + default y + depends on MYRI10GE && DCA && !(MYRI10GE=y && DCA=m) + ---help--- + Say Y here if you want to use Direct Cache Access (DCA) in the + driver. DCA is a method for warming the CPU cache before data + is used, with the intent of lessening the impact of cache misses. diff --git a/drivers/net/ethernet/myricom/Makefile b/drivers/net/ethernet/myricom/Makefile new file mode 100644 index 0000000..296c0a1 --- /dev/null +++ b/drivers/net/ethernet/myricom/Makefile @@ -0,0 +1,5 @@ +# +# Makefile for the Myricom network device drivers. +# + +obj-$(CONFIG_MYRI10GE) += myri10ge/
Move the Myricom drivers into drivers/net/ethernet/myricom/ and make the necessary Kconfig and Makefile changes. CC: Andrew Gallatin <gallatin@myri.com> CC: Brice Goglin <brice@myri.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> --- MAINTAINERS | 2 +- drivers/net/Kconfig | 26 ------------ drivers/net/Makefile | 1 - drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/myricom/Kconfig | 42 ++++++++++++++++++++ drivers/net/ethernet/myricom/Makefile | 5 ++ .../net/{ => ethernet/myricom}/myri10ge/Makefile | 0 .../net/{ => ethernet/myricom}/myri10ge/myri10ge.c | 0 .../{ => ethernet/myricom}/myri10ge/myri10ge_mcp.h | 0 .../myricom}/myri10ge/myri10ge_mcp_gen_header.h | 0 11 files changed, 50 insertions(+), 28 deletions(-) create mode 100644 drivers/net/ethernet/myricom/Kconfig create mode 100644 drivers/net/ethernet/myricom/Makefile rename drivers/net/{ => ethernet/myricom}/myri10ge/Makefile (100%) rename drivers/net/{ => ethernet/myricom}/myri10ge/myri10ge.c (100%) rename drivers/net/{ => ethernet/myricom}/myri10ge/myri10ge_mcp.h (100%) rename drivers/net/{ => ethernet/myricom}/myri10ge/myri10ge_mcp_gen_header.h (100%) diff --git a/drivers/net/myri10ge/Makefile b/drivers/net/ethernet/myricom/myri10ge/Makefile similarity index 100% rename from drivers/net/myri10ge/Makefile rename to drivers/net/ethernet/myricom/myri10ge/Makefile diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c similarity index 100% rename from drivers/net/myri10ge/myri10ge.c rename to drivers/net/ethernet/myricom/myri10ge/myri10ge.c diff --git a/drivers/net/myri10ge/myri10ge_mcp.h b/drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp.h similarity index 100% rename from drivers/net/myri10ge/myri10ge_mcp.h rename to drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp.h diff --git a/drivers/net/myri10ge/myri10ge_mcp_gen_header.h b/drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp_gen_header.h similarity index 100% rename from drivers/net/myri10ge/myri10ge_mcp_gen_header.h rename to drivers/net/ethernet/myricom/myri10ge/myri10ge_mcp_gen_header.h