aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipg.h
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-06-23 07:35:16 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-07-04 08:46:51 -0400
commit024f4d88b45003710e8e2ee937b0c56aaf2dff2d (patch)
tree3cbf3080f10e5bd3b1017c68581e3a48b8ff3b2c /drivers/net/ipg.h
parent16e605a2a0398bc1e693e8571bf0cbc5aa5c00c8 (diff)
ipg: always compile in jumbo frame support
Add a ->is_jumbo boolean to struct ipg_nic_private and fix up ipg_interrupt_handler() to call the jumbo frame version of ipg_nic_rx() if the boolean is set to true. Also remove the JUMBO_FRAME #ifdefs so we can always compile in support for jumbo frames. Tested-by: Andrew Savchenko <Bircoph@list.ru> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ipg.h')
-rw-r--r--drivers/net/ipg.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/ipg.h b/drivers/net/ipg.h
index cda53887d4db..446f3663ae6a 100644
--- a/drivers/net/ipg.h
+++ b/drivers/net/ipg.h
@@ -537,6 +537,12 @@ enum ipg_regs {
537#define IPG_FRAMESBETWEENTXDMACOMPLETES 0x1 537#define IPG_FRAMESBETWEENTXDMACOMPLETES 0x1
538 538
539#ifdef JUMBO_FRAME 539#ifdef JUMBO_FRAME
540# define IPG_JUMBO true
541#else
542# define IPG_JUMBO false
543#endif
544
545#ifdef JUMBO_FRAME
540 546
541# ifdef JUMBO_FRAME_SIZE_2K 547# ifdef JUMBO_FRAME_SIZE_2K
542# define JUMBO_FRAME_SIZE 2048 548# define JUMBO_FRAME_SIZE 2048
@@ -786,9 +792,8 @@ struct ipg_nic_private {
786 unsigned int tx_dirty; 792 unsigned int tx_dirty;
787 unsigned int rx_current; 793 unsigned int rx_current;
788 unsigned int rx_dirty; 794 unsigned int rx_dirty;
789#ifdef JUMBO_FRAME 795 bool is_jumbo;
790 struct ipg_jumbo jumbo; 796 struct ipg_jumbo jumbo;
791#endif
792 unsigned int rx_buf_sz; 797 unsigned int rx_buf_sz;
793 struct pci_dev *pdev; 798 struct pci_dev *pdev;
794 struct net_device *dev; 799 struct net_device *dev;