Skip to content

Commit 1558310

Browse files
Dimitris Michailidisdavem330
authored andcommitted
cxgb{3,4}*: improve Kconfig dependencies
- Remove the dependency of cxgb4 and cxgb4vf on INET. cxgb3 really depends on INET, keep it but add it directly to the driver's Kconfig entry. - Make the iSCSI drivers cxgb3i and cxgb4i available in the SCSI menu without requiring any options in the net driver menu to be enabled first. Add needed selects so the iSCSI drivers can build their corresponding net drivers. - Remove CHELSIO_T*_DEPENDS. Signed-off-by: Dimitris Michailidis <[email protected]> Acked-by: Jan Beulich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dc6ed1d commit 1558310

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

drivers/net/Kconfig

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,14 +2595,9 @@ config CHELSIO_T1_1G
25952595
Enables support for Chelsio's gigabit Ethernet PCI cards. If you
25962596
are using only 10G cards say 'N' here.
25972597

2598-
config CHELSIO_T3_DEPENDS
2599-
tristate
2600-
depends on PCI && INET
2601-
default y
2602-
26032598
config CHELSIO_T3
26042599
tristate "Chelsio Communications T3 10Gb Ethernet support"
2605-
depends on CHELSIO_T3_DEPENDS
2600+
depends on PCI && INET
26062601
select FW_LOADER
26072602
select MDIO
26082603
help
@@ -2620,14 +2615,9 @@ config CHELSIO_T3
26202615
To compile this driver as a module, choose M here: the module
26212616
will be called cxgb3.
26222617

2623-
config CHELSIO_T4_DEPENDS
2624-
tristate
2625-
depends on PCI && INET
2626-
default y
2627-
26282618
config CHELSIO_T4
26292619
tristate "Chelsio Communications T4 Ethernet support"
2630-
depends on CHELSIO_T4_DEPENDS
2620+
depends on PCI
26312621
select FW_LOADER
26322622
select MDIO
26332623
help
@@ -2645,14 +2635,9 @@ config CHELSIO_T4
26452635
To compile this driver as a module choose M here; the module
26462636
will be called cxgb4.
26472637

2648-
config CHELSIO_T4VF_DEPENDS
2649-
tristate
2650-
depends on PCI && INET
2651-
default y
2652-
26532638
config CHELSIO_T4VF
26542639
tristate "Chelsio Communications T4 Virtual Function Ethernet support"
2655-
depends on CHELSIO_T4VF_DEPENDS
2640+
depends on PCI
26562641
help
26572642
This driver supports Chelsio T4-based gigabit and 10Gb Ethernet
26582643
adapters with PCI-E SR-IOV Virtual Functions.

drivers/scsi/cxgbi/cxgb3i/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
config SCSI_CXGB3_ISCSI
22
tristate "Chelsio T3 iSCSI support"
3-
depends on CHELSIO_T3_DEPENDS
3+
depends on PCI && INET
4+
select NETDEVICES
5+
select NETDEV_10000
46
select CHELSIO_T3
57
select SCSI_ISCSI_ATTRS
68
---help---

drivers/scsi/cxgbi/cxgb4i/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
config SCSI_CXGB4_ISCSI
22
tristate "Chelsio T4 iSCSI support"
3-
depends on CHELSIO_T4_DEPENDS
3+
depends on PCI && INET
4+
select NETDEVICES
5+
select NETDEV_10000
46
select CHELSIO_T4
57
select SCSI_ISCSI_ATTRS
68
---help---

0 commit comments

Comments
 (0)