summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ixgb.c
AgeCommit message (Collapse)Author
2009-08-13- consistify cfdriver for the ethernet drivers (0 -> NULL)Jasper Lievisse Adriaanse
ok dlg@
2009-08-10A few more simple cases of shutdown hooks which only call xxstop, whenTheo de Raadt
we now know the interface has already been stopped
2009-06-24like I did for em(4) before, doubled error messages are sillyTheo de Raadt
from brad
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-11-09Introduce bpf_mtap_ether(), which for the benefit of bpf listenersChristian Weisgerber
creates the VLAN encapsulation from the tag stored in the mbuf header. Idea from FreeBSD, input from claudio@ and canacar@. Switch all hardware VLAN enabled drivers to the new function. ok claudio@
2008-10-28Some tweaks for the usage of NVLAN > 0 checks in the code.Brad Smith
2008-10-21Re-add support TX VLAN tag insertion and RX VLAN tag stripping.Brad Smith
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-09-30style nits.Brad Smith
2008-09-24remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@ brad@
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
2008-06-08Correct the watchdog timer by moving it out from under the condition checkBrad Smith
for the IFF_OACTIVE flag. ok reyk@
2008-06-08dma sync the tx ring and post new packets to the chip once per call toBrad Smith
the start routine instead of once per packet. ok reyk@
2008-06-08don't declare foo_driver_version[] strings and turn them into defines,Reyk Floeter
nothing uses them and it saves a few bytes in the kernel. ok claudio@
2008-06-03put code to print periodic debug statistics in #ifdef IXGB_DEBUG, shrinksReyk Floeter
the driver for about 990 bytes on i386. ok brad@
2008-03-02If bus_dmamap_load_mbuf() fails in ixgb_get_buf() use m_freem() intead ofBrad Smith
m_free() to free the mbuf cluster. ok mglocker@
2008-02-19Add support for the optics on the Sun variant of ixgb(4) boards.Brad Smith
From Intel tested by and ok dlg@
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-09-19Use the proper baudrate for 10Gb hw now that it can fit into the buadrateBrad Smith
field. ok claudio@ dlg@
2006-12-04report full/half duplex state for non-MII interfacesReyk Floeter
ok brad@
2006-11-28Pre-allocate the TX DMA maps intead of creating and destroying a DMA mapBrad Smith
per packet sent.
2006-11-28- ixgb_dma_alloc(): Uncomment the line setting the DMA tag to NUL upon failure.Brad Smith
- ixgb_dma_free(): Return if the DMA tag is NUL.
2006-11-28style changes and cleaning. no op.Brad Smith
2006-11-18ixgb_get_buf():Brad Smith
- Use bus_dmamap_load_mbuf() instead of bus_dmamap_load() + mtod(). - Only BUS_DMASYNC_PREREAD is necessary for the bus_dmamap_sync(). ixgb_allocate_receive_structures(): - Clean up error handling for receive buffer allocation and just have everything done by ixgb_free_receive_structures() now. ixgb_free_receive_structures(): - A few changes here to allow this function to be called from ixgb_stop() as well as ixgb_allocate_receive_structures().
2006-11-18add a few commentsBrad Smith
2006-10-02move the checksum stuff under IXGB_CSUM_OFFLOAD.Brad Smith
2006-08-18check hw.max_frame_size when deciding when to use m_adj().Brad Smith
2006-08-14Use if_hardmtu and simplify the MTU ioctl handler. no-op change.Brad Smith
2006-08-09update the version I am tracking.Brad Smith
2006-08-09Use the DMA map size from the DMA map instead of the dma_size field withBrad Smith
bus_dma sync's. ok dlg@ marco@
2006-08-04typo, loose -> loseBrad Smith
2006-08-04- merge em/ixgb_disable_promisc() into em/ixgb_set_promisc().Brad Smith
- rearrange interface flags ioctl handler.
2006-08-04fix up error messages in em/ixgb_allocate_pci_resources().Brad Smith
2006-08-01(em/ixgb)_(clean_transmit_interrupts/process_receive_interrupts) ->Brad Smith
(em/ixgb)_(txeof/rxeof)
2006-07-10Fully initialize the softc structure before enabling interrupt.Brad Smith
Copied from drahn@'s commit to if_em.
2006-06-22better media handling.Brad Smith
2006-06-21use the 10Gb SR media type for now.Brad Smith
2006-05-28unknown ioctl is ENOTTY not EINVALJason Wright
2006-05-27remove IFCAP_JUMBO_MTU interface capabilities flag and set if_hardmtu in a fewBrad Smith
more drivers. ok reyk@
2006-05-26rename jumbo mtu to if_hardmtu; ok brad reykTheo de Raadt
2006-05-20set if_jumbo_mtu and the IFCAP_JUMBO_MTU capabilities flag whereBrad Smith
appropriate. ok reyk@
2006-05-01- when setting the interface address, only call ixgb_init() if the interfaceBrad Smith
is not already running. - remove splnet usage from ixgb_intr(). - replace magic value of 32 with IXGB_MAX_SCATTER.
2006-04-20Fix various printf() issues: too many arguments, not enough arguments, argumentMiod Vallat
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@
2006-03-27Sync up to Intel's latest FreeBSD ixgb driver (5.0.1).Brad Smith
From: Intel's web-site
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-05tabs are holier than spaces.Brad Smith
2006-02-26- set baud rate in ixgb_update_link_status().Brad Smith
- remove some FreeBSD code. - set IFM_NONE if no link.
2006-02-10fix a typo in em_clean_transmit_interrupts() that will cause theBrad Smith
watchdog timer to fire if the TX descriptor ring is emptied for EM_TX_TIMEOUT seconds. The same bug exists in ixgb(4) too. From FreeSBD
2006-02-10Remove clearing of the IFF_RUNNING flag from the watchdog handler asBrad Smith
ixgb_stop() will do this anyway.
2006-02-01remove return values in this comment too.Brad Smith