Skip to contentSkip to conversation

Add ixgbe support

PATCH In review Mitch Williams 2 participants 4 messages Jan 29, 2009 – Jan 30, 2009 Network drivers

lore
Share & tools
lore
#0 lore raw

cover Add ixgbe support

My first attempt to post this patch got silently dropped by Mailman, presumably because it was too big. Here's the exact same code, chopped up 11 ways.

The ixgbe driver supports Intel's line of PCI Express 10 Gbps Ethernet products. This patch is based on the latest standalone driver, version 1.3.56.5. The source and header files have been added to the kernel tree unchanged, minus a few files that are not required under 2.6.18.

These patches are not cumulative. You will need to apply all 11 in order to get a working ixgbe driver.

These patches apply cleanly to the main development kernel, as well as to the Netchannel2 tree. Please apply to both.

#1 lore raw
Quoted 3 lines

My first attempt to post this patch got silently dropped by Mailman, presumably because it was too big. Here's the exact same code, chopped up 11 ways.

Thanks. I've applied the whole series to the netchannel2 tree.

I had to apply an extra patch in order to get the thing to build:

drivers/net/ixgbe/ixgbe_ethtool.c Thu Jan 29 10:46:35 2009 +0000 renamed from drivers/net/ixgbe/ixgbe_ethtool.c Thu Jan 29 10:36:26 2009 +0000 +2 -2
diff -r 7f93f947b997 -r fcc044a90d40 drivers/net/ixgbe/ixgbe_ethtool.c
@@ -129,8 +129,7 @@
                  sizeof(((struct ixgbe_adapter *)0)->stats.pxoffrxc) + \
                  sizeof(((struct ixgbe_adapter *)0)->stats.pxofftxc)) \
                 / sizeof(u64) : 0)
-#define IXGBE_STATS_LEN (IXGBE_GLOBAL_STATS_LEN + IXGBE_PB_STATS_LEN
- IXGBE_QUEUE_STATS_LEN)
+#define IXGBE_STATS_LEN (IXGBE_GLOBAL_STATS_LEN + IXGBE_PB_STATS_LEN + IXGBE_QUEUE_STATS_LEN)
 #define IXGBE_GLOBAL_STATS_LEN ARRAY_SIZE(ixgbe_gstrings_stats)
 #endif /* ETHTOOL_GSTATS */
 #ifdef ETHTOOL_TEST
@@ -1939,3 +1938,4 @@
 {
        SET_ETHTOOL_OPS(netdev, &ixgbe_ethtool_ops);
 }
+#endif

which presumably is due to some kind of patch screwiness. Unfortunately, I don't actually have any ixgbes to test with, so I don't have much idea whether that actually works. Still, it looks pretty safe. :)

Steven.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 6 lines

From: Steven Smith [mailto:[email protected]] Thanks. I've applied the whole series to the netchannel2 tree.

I had to apply an extra patch in order to get the thing to build:

Sorry about the problem, Steven. I sent the patches using Gmail, and it probably mangled it a bit.

Any chance we can get the base driver (not the VMDq stuff) into the main development tree? It works fine, and would be a benefit to our customers.

Thanks,
Mitch

#3 lore raw
Quoted 6 lines
Quoted 4 lines

From: Steven Smith [mailto:[email protected]] Thanks. I've applied the whole series to the netchannel2 tree.

I had to apply an extra patch in order to get the thing to build:

Sorry about the problem, Steven. I sent the patches using Gmail, and it probably mangled it a bit.

Don't worry about it; it was easy enough to fix up.

Quoted 3 lines

Any chance we can get the base driver (not the VMDq stuff) into the main development tree? It works fine, and would be a benefit to our customers.

You'll have to talk to Keir about that. I don't have commit access to the main 2.6.18 repository.

Steven.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel