svn commit: r278220 - head/sys/dev/sfxge/common

2015-02-04 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 4 19:58:54 2015 New Revision: 278220 URL: https://svnweb.freebsd.org/changeset/base/278220 Log: sfxge: Implement EFSYS_MEM_READ_BARRIER() Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r278221 - in head/sys/dev/sfxge: . common

2015-02-04 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 4 20:03:57 2015 New Revision: 278221 URL: https://svnweb.freebsd.org/changeset/base/278221 Log: sfxge: Add macros to init, destroy, acquire, release and assert locks Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r278248 - head/sys/dev/sfxge

2015-02-05 Thread Andrew Rybchenko
Author: arybchik Date: Thu Feb 5 11:37:07 2015 New Revision: 278248 URL: https://svnweb.freebsd.org/changeset/base/278248 Log: sfxge: access statistics buffers under port lock Allow access to statistics data not only from sysctl handlers. Submitted by: Boris Misenov Boris.Misenov

svn commit: r278254 - head/sys/dev/sfxge/common

2015-02-05 Thread Andrew Rybchenko
Author: arybchik Date: Thu Feb 5 12:08:25 2015 New Revision: 278254 URL: https://svnweb.freebsd.org/changeset/base/278254 Log: sfxge: using 64-bit access for x86-64 Submitted by: Artem V. Andreev Artem.Andreev at oktetlabs.ru Sponsored by: Solarflare Communications, Inc. Approved

svn commit: r278255 - head/sys/dev/sfxge

2015-02-05 Thread Andrew Rybchenko
Author: arybchik Date: Thu Feb 5 12:10:23 2015 New Revision: 278255 URL: https://svnweb.freebsd.org/changeset/base/278255 Log: sfxge: Add statistics for partially dropped TSO packets Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r278250 - in head/sys/dev/sfxge: . common

2015-02-05 Thread Andrew Rybchenko
Author: arybchik Date: Thu Feb 5 11:39:15 2015 New Revision: 278250 URL: https://svnweb.freebsd.org/changeset/base/278250 Log: sfxge: make lock names unique Lock name should include interface name. Tx queue and event queue lock name should include queue number. Sponsored by:

svn commit: r278941 - head/sys/dev/sfxge/common

2015-02-17 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 18 06:23:16 2015 New Revision: 278941 URL: https://svnweb.freebsd.org/changeset/base/278941 Log: sfxge: support variable-length response to MCDI GET_BOARD_CFG Allocate the minimum or maximum response length for GET_BOARD_CFG as appropriate. When looking up

svn commit: r278940 - head/sys/dev/sfxge

2015-02-17 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 18 06:21:59 2015 New Revision: 278940 URL: https://svnweb.freebsd.org/changeset/base/278940 Log: sfxge: add driver context member with number of event queues Mainly to unify with similar member for transmit and receive queues. It will be used in the future

svn commit: r278938 - head/sys/dev/sfxge

2015-02-17 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 18 06:19:35 2015 New Revision: 278938 URL: https://svnweb.freebsd.org/changeset/base/278938 Log: sfxge: add driver context member with number of transmit queues Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r278937 - head/sys/dev/sfxge

2015-02-17 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 18 06:18:51 2015 New Revision: 278937 URL: https://svnweb.freebsd.org/changeset/base/278937 Log: sfxge: add TCP segment size to sfxge_tso_state It avoids access to m_pkthdr when TSO packet is started and also makes tso_start_new_packet() function smaller.

svn commit: r278942 - head/sys/dev/sfxge/common

2015-02-17 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 18 06:26:07 2015 New Revision: 278942 URL: https://svnweb.freebsd.org/changeset/base/278942 Log: sfxge: fix broken MCDI_EV_FIELD() macro Submitted by: Andrew Lee alee at solarflare.com Sponsored by: Solarflare Communications, Inc. Approved by:gnn

svn commit: r278939 - head/sys/dev/sfxge

2015-02-17 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 18 06:20:59 2015 New Revision: 278939 URL: https://svnweb.freebsd.org/changeset/base/278939 Log: sfxge: add driver context member with number of receive queues Mainly to unify with similar member for transmit queues. Sponsored by: Solarflare

svn commit: r279048 - head/sys/dev/sfxge/common

2015-02-19 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 20 07:57:59 2015 New Revision: 279048 URL: https://svnweb.freebsd.org/changeset/base/279048 Log: sfxge: add Florence R7 turbo mode support to common code Submitted by: Andrew Lee alee at solarflare.com Sponsored by: Solarflare Communications, Inc.

svn commit: r279046 - head/sys/dev/sfxge

2015-02-19 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 20 07:53:46 2015 New Revision: 279046 URL: https://svnweb.freebsd.org/changeset/base/279046 Log: sfxge: handle fragmented TCP header in mbuf TCP header is fragmented in the case of VLAN tagged IPv6 traffic without HW VLAN tagging. Sponsored by:

svn commit: r279047 - head/sys/dev/sfxge/common

2015-02-19 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 20 07:54:35 2015 New Revision: 279047 URL: https://svnweb.freebsd.org/changeset/base/279047 Log: sfxge: regenerate MCDI protocol headers Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r277884 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:50:25 2015 New Revision: 277884 URL: https://svnweb.freebsd.org/changeset/base/277884 Log: sfxge: Change sfxge_ev_qpoll() proto to avoid EVQ pointers array access It was the only place on data path where sc-evq array is accessed. Sponsored by:

svn commit: r277885 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:52:33 2015 New Revision: 277885 URL: https://svnweb.freebsd.org/changeset/base/277885 Log: sfxge: Move txq-next pointer to part writable on completion path In fact the pointer is used only if more than one TXQ is processed in one interrupt. It is

svn commit: r277890 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:02:25 2015 New Revision: 277890 URL: https://svnweb.freebsd.org/changeset/base/277890 Log: sfxge: Do not bzero() DMA allocated memory once again sfxge_dma_alloc() calls bus_dmamem_alloc() with BUS_DMA_ZERO flag, so allocated memory is already filled

svn commit: r277892 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:04:42 2015 New Revision: 277892 URL: https://svnweb.freebsd.org/changeset/base/277892 Log: sfxge: Pass correct address to free allocated memory in the case of load error Most likely is was just memory leak on the error handling path since typically

svn commit: r277886 - in head/sys/dev/sfxge: . common

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:54:43 2015 New Revision: 277886 URL: https://svnweb.freebsd.org/changeset/base/277886 Log: sfxge: Make it possible to build without EVQ statistics Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r277887 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:57:27 2015 New Revision: 277887 URL: https://svnweb.freebsd.org/changeset/base/277887 Log: sfxge: Remove extra cache-line alignment and reorder sfxge_evq_t Remove the first member alignment to cacheline since it is nop. Use __aligned() for the whole

svn commit: r277888 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 18:59:22 2015 New Revision: 277888 URL: https://svnweb.freebsd.org/changeset/base/277888 Log: sfxge: fixed TSO code to cope with VLAN headers Submitted by: Artem V. Andreev Artem.Andreev at oktetlabs.ru Sponsored by: Solarflare Communications, Inc.

svn commit: r277889 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:01:09 2015 New Revision: 277889 URL: https://svnweb.freebsd.org/changeset/base/277889 Log: sfxge: Add evq argument to sfxge_tx_qcomplete() It removes necessity to get evq pointer by its index in soft context. Sponsored by: Solarflare

svn commit: r277891 - head/sys/dev/sfxge/common

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:03:33 2015 New Revision: 277891 URL: https://svnweb.freebsd.org/changeset/base/277891 Log: sfxge: Remove unused esm_size member of the efsys_mem_t structure esm_size is not even initialized properly when memory is allocated. Sponsored by:

svn commit: r277893 - head/sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:06:14 2015 New Revision: 277893 URL: https://svnweb.freebsd.org/changeset/base/277893 Log: sfxge: Use SFXGE_MODERATION to initialize event moderation Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r277894 - in head: share/man/man4 sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:09:14 2015 New Revision: 277894 URL: https://svnweb.freebsd.org/changeset/base/277894 Log: sfxge: implemented parameter to restrict RSS channels Submitted by: Artem V. Andreev Artem.Andreev at oktetlabs.ru Sponsored by: Solarflare Communications,

svn commit: r277895 - in head: share/man/man4 sys/dev/sfxge

2015-01-29 Thread Andrew Rybchenko
Author: arybchik Date: Thu Jan 29 19:11:37 2015 New Revision: 277895 URL: https://svnweb.freebsd.org/changeset/base/277895 Log: sfxge: Separate software Tx queue limit for non-TCP traffic Add separate software Tx queue limit for non-TCP traffic to make total limit higher and avoid local

svn commit: r278839 - head/sys/dev/sfxge/common

2015-02-15 Thread Andrew Rybchenko
Author: arybchik Date: Mon Feb 16 06:12:04 2015 New Revision: 278839 URL: https://svnweb.freebsd.org/changeset/base/278839 Log: sfxge: style fixes Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified: head/sys/dev/sfxge/common/efx_ev.c

svn commit: r278841 - head/sys/dev/sfxge

2015-02-15 Thread Andrew Rybchenko
Author: arybchik Date: Mon Feb 16 06:16:38 2015 New Revision: 278841 URL: https://svnweb.freebsd.org/changeset/base/278841 Log: sfxge: flush all Tx queues from if_qflush Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor), glebius Modified:

svn commit: r278833 - head/sys/dev/sfxge

2015-02-15 Thread Andrew Rybchenko
Author: arybchik Date: Mon Feb 16 06:00:43 2015 New Revision: 278833 URL: https://svnweb.freebsd.org/changeset/base/278833 Log: sfxge: remove unused variable Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor), glebius Modified: head/sys/dev/sfxge/sfxge_tx.c

svn commit: r278835 - head/sys/dev/sfxge

2015-02-15 Thread Andrew Rybchenko
Author: arybchik Date: Mon Feb 16 06:04:26 2015 New Revision: 278835 URL: https://svnweb.freebsd.org/changeset/base/278835 Log: sfxge: remove full_packet_size from sfxge_tso_state It makes sfxge_tso_state smaller and even makes tso_start_new_packet() few bytes smaller. Data used to

svn commit: r278836 - head/sys/dev/sfxge

2015-02-15 Thread Andrew Rybchenko
Author: arybchik Date: Mon Feb 16 06:07:01 2015 New Revision: 278836 URL: https://svnweb.freebsd.org/changeset/base/278836 Log: sfxge: remove used sfxge_tso_state member dma_seg_i Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r278838 - head/sys/dev/sfxge

2015-02-15 Thread Andrew Rybchenko
Author: arybchik Date: Mon Feb 16 06:10:17 2015 New Revision: 278838 URL: https://svnweb.freebsd.org/changeset/base/278838 Log: sfxge: SYSCTL_IN/OUT should not be called with non-sleepable lock held The problem is found using WITNESS option enabled. Sponsored by: Solarflare

svn commit: r278837 - head/sys/dev/sfxge

2015-02-15 Thread Andrew Rybchenko
Author: arybchik Date: Mon Feb 16 06:08:13 2015 New Revision: 278837 URL: https://svnweb.freebsd.org/changeset/base/278837 Log: sfxge: remove inline specifiers Now compiler does not need any help. The patch does not change generated code. Sponsored by: Solarflare Communications,

svn commit: r276809 - head/share/misc

2015-01-07 Thread Andrew Rybchenko
\nandrew@Fre antoine [label=Antoine Brodin\nanto...@freebsd.org\n2008/02/03] ariff [label=Ariff Abdullah\nar...@freebsd.org\n2005/11/14] art [label=Artem Belevich\n...@freebsd.org\n2011/03/29] +arybchik [label=Andrew Rybchenko\narybc...@freebsd.org\n2014/10/12] asomers [label=Alan Somers\nasom

svn commit: r280162 - in head/sys: dev/sfxge modules/sfxge

2015-03-17 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 17 08:21:31 2015 New Revision: 280162 URL: https://svnweb.freebsd.org/changeset/base/280162 Log: sfxge: adding version info to device description The information is required for NIC update and config tools. Submitted by: Artem V. Andreev Artem.Andreev

svn commit: r280160 - in head: share/man/man4 sys/dev/sfxge

2015-03-17 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 17 08:14:46 2015 New Revision: 280160 URL: https://svnweb.freebsd.org/changeset/base/280160 Log: sfxge: add tunables to control LRO parameters on driver load time Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r280161 - head/sys/dev/sfxge

2015-03-17 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 17 08:16:37 2015 New Revision: 280161 URL: https://svnweb.freebsd.org/changeset/base/280161 Log: sfxge: move deferred packet list statistics to dedicated node It is done to structure sysctl and do not mix with Tx queue statistics to be added. Sponsored

svn commit: r280163 - head/sys/dev/sfxge

2015-03-17 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 17 08:23:15 2015 New Revision: 280163 URL: https://svnweb.freebsd.org/changeset/base/280163 Log: sfxge: prefetch txq-common if TxQ is started only Transmit may be called when TxQ is not started yet (i.e. txq-common is invalid). TxQ state is checked below

svn commit: r280164 - head/sys/dev/sfxge

2015-03-17 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 17 08:23:46 2015 New Revision: 280164 URL: https://svnweb.freebsd.org/changeset/base/280164 Log: sfxge: increase default put-list limit to 1024 Drops are observed under multi-stream TCP traffic due to put-list overflow with limit equal to 64. Sponsored

svn commit: r280432 - head/sys/dev/sfxge

2015-03-24 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 24 11:25:19 2015 New Revision: 280432 URL: https://svnweb.freebsd.org/changeset/base/280432 Log: sfxge: cleanup: add a blank line before each #if to improve readability Sponsored by: Solarflare Communications, Inc. Modified: head/sys/dev/sfxge/sfxge.h

svn commit: r280433 - head/sys/dev/sfxge

2015-03-24 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 24 11:33:34 2015 New Revision: 280433 URL: https://svnweb.freebsd.org/changeset/base/280433 Log: sfxge: cleanup: fix index variable type to match upper boundary type Sponsored by: Solarflare Communications, Inc. Modified: head/sys/dev/sfxge/sfxge_tx.c

svn commit: r280431 - head/sys/modules/sfxge

2015-03-24 Thread Andrew Rybchenko
Author: arybchik Date: Tue Mar 24 11:22:12 2015 New Revision: 280431 URL: https://svnweb.freebsd.org/changeset/base/280431 Log: sfxge: cleanup: remove trailing whitespaces Sponsored by: Solarflare Communications, Inc. Modified: head/sys/modules/sfxge/Makefile Modified:

svn commit: r280807 - head/sys/dev/sfxge

2015-03-29 Thread Andrew Rybchenko
Author: arybchik Date: Sun Mar 29 15:18:04 2015 New Revision: 280807 URL: https://svnweb.freebsd.org/changeset/base/280807 Log: sfxge: fix bug in TSO when a DMA segment has both header and data Reviewed by:gnn Sponsored by: Solarflare Communications, Inc. MFC after: 2 days

svn commit: r280374 - head/sys/dev/sfxge

2015-03-23 Thread Andrew Rybchenko
Author: arybchik Date: Mon Mar 23 15:44:17 2015 New Revision: 280374 URL: https://svnweb.freebsd.org/changeset/base/280374 Log: sfxge: assert either kernel or internal copy of interface flags ioctl to put interface down sets ifp-if_flags which holds the intended administratively defined

svn commit: r280376 - head/sys/dev/sfxge

2015-03-23 Thread Andrew Rybchenko
Author: arybchik Date: Mon Mar 23 15:47:37 2015 New Revision: 280376 URL: https://svnweb.freebsd.org/changeset/base/280376 Log: sfxge: remove obsolete Tx non-multi queue support Tx multi queue is added in FreeBSD 8.0. So, the changeset drops earlier versions support. Sponsored by:

svn commit: r280377 - head/sys/dev/sfxge

2015-03-23 Thread Andrew Rybchenko
Author: arybchik Date: Mon Mar 23 15:49:11 2015 New Revision: 280377 URL: https://svnweb.freebsd.org/changeset/base/280377 Log: sfxge: add statistics for each Tx queue Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D2082 Modified:

svn commit: r280380 - head/sys/dev/sfxge

2015-03-23 Thread Andrew Rybchenko
Author: arybchik Date: Mon Mar 23 15:53:26 2015 New Revision: 280380 URL: https://svnweb.freebsd.org/changeset/base/280380 Log: sfxge: remove unnecessary and wrong prediction Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D2085

svn commit: r280379 - head/sys/dev/sfxge/common

2015-03-23 Thread Andrew Rybchenko
Author: arybchik Date: Mon Mar 23 15:52:57 2015 New Revision: 280379 URL: https://svnweb.freebsd.org/changeset/base/280379 Log: sfxge: do not check MCDI status word This is a temporary workaround until we determine a reliable sequence of operations for detecting MC reboots.

svn commit: r280375 - head/sys/dev/sfxge/common

2015-03-23 Thread Andrew Rybchenko
Author: arybchik Date: Mon Mar 23 15:45:39 2015 New Revision: 280375 URL: https://svnweb.freebsd.org/changeset/base/280375 Log: sfxge: add barriers to BAR write macros In theory the barriers are required to cope with write combining and reordering. Two barriers are added (sometimes

svn commit: r280378 - head/sys/dev/sfxge/common

2015-03-23 Thread Andrew Rybchenko
Author: arybchik Date: Mon Mar 23 15:52:05 2015 New Revision: 280378 URL: https://svnweb.freebsd.org/changeset/base/280378 Log: sfxge: FreeBSD before 10 does not have bus_space_*_8 on amd64 bus_space_*_8() are not always macros, so it is not correct to use #ifndef. Sponsored by:

svn commit: r279351 - head/sys/dev/sfxge

2015-02-26 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 27 07:39:09 2015 New Revision: 279351 URL: https://svnweb.freebsd.org/changeset/base/279351 Log: sfxge: expect required init_state on data path and in periodic calls With the patch applied the number of instruction events is 1% less and number of

svn commit: r279398 - in head/sys: dev/sfxge modules/sfxge

2015-02-28 Thread Andrew Rybchenko
Author: arybchik Date: Sat Feb 28 19:01:43 2015 New Revision: 279398 URL: https://svnweb.freebsd.org/changeset/base/279398 Log: sfxge: compile out LRO if kernel is compiled without IPv4 and IPv6 Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279143 - head/sys/dev/sfxge/common

2015-02-21 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 07:14:12 2015 New Revision: 279143 URL: https://svnweb.freebsd.org/changeset/base/279143 Log: sfxge: use common definitions of MC shared memory offsets and PDU length Submitted by: Ben Hutchings Sponsored by: Solarflare Communications, Inc.

svn commit: r279177 - head/sys/dev/sfxge

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:52:15 2015 New Revision: 279177 URL: https://svnweb.freebsd.org/changeset/base/279177 Log: sfxge: assert event queue lock in event handlers It is useful to highlight lock context. Sponsored by: Solarflare Communications, Inc. Approved by:

svn commit: r279176 - head/sys/dev/sfxge

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:50:59 2015 New Revision: 279176 URL: https://svnweb.freebsd.org/changeset/base/279176 Log: sfxge: pass correct address to free allocated memory in the case of load error It is one more place missed in the previous fix. Most likely is was just memory

svn commit: r279182 - in head/sys/dev/sfxge: . common

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 19:13:52 2015 New Revision: 279182 URL: https://svnweb.freebsd.org/changeset/base/279182 Log: sfxge: correct event queue interrupt moderation timer quanta Submitted by: Andrew Lee alee at solarflare.com Sponsored by: Solarflare Communications, Inc.

svn commit: r279183 - head/sys/dev/sfxge/common

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 19:24:08 2015 New Revision: 279183 URL: https://svnweb.freebsd.org/changeset/base/279183 Log: sfxge: add common code support for changing TX queue pace To delay packets from a particular TX queue by a particular time, write a value into the TX Pace

svn commit: r279178 - head/sys/dev/sfxge/common

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:54:16 2015 New Revision: 279178 URL: https://svnweb.freebsd.org/changeset/base/279178 Log: sfxge: do no allow EFSYS_MEM_ALLOC sleep It solves locking problem when EFSYS_MEM_ALLOC is called in the context holding a mutex (not allowed to sleep). E.g.

svn commit: r279184 - head/sys/dev/sfxge

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 19:25:57 2015 New Revision: 279184 URL: https://svnweb.freebsd.org/changeset/base/279184 Log: sfxge: implement if_get_counter callback Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified: head/sys/dev/sfxge/sfxge.c

svn commit: r279172 - head/sys/dev/sfxge/common

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:44:37 2015 New Revision: 279172 URL: https://svnweb.freebsd.org/changeset/base/279172 Log: sfxge: add new identities to Siena static config Submitted by: Andrew Jackson ajackson at solarflare.com Sponsored by: Solarflare Communications, Inc.

svn commit: r279179 - head/sys/dev/sfxge

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:56:03 2015 New Revision: 279179 URL: https://svnweb.freebsd.org/changeset/base/279179 Log: sfxge: DMA allocated memory is set to zeros because of BUS_DMA_ZERO flag It is not required to set it to zeros once again. Sponsored by: Solarflare

svn commit: r279173 - head/sys/dev/sfxge/common

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:46:11 2015 New Revision: 279173 URL: https://svnweb.freebsd.org/changeset/base/279173 Log: sfxge: add missing common code NVRAM types and map from MCDI Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279174 - head/sys/dev/sfxge/common

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:47:30 2015 New Revision: 279174 URL: https://svnweb.freebsd.org/changeset/base/279174 Log: sfxge: add missing Siena sensors to common code Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279180 - head/sys/modules/sfxge

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:57:28 2015 New Revision: 279180 URL: https://svnweb.freebsd.org/changeset/base/279180 Log: sfxge: list header in SRCS Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified: head/sys/modules/sfxge/Makefile Modified:

svn commit: r279181 - head/share/man/man4

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:59:00 2015 New Revision: 279181 URL: https://svnweb.freebsd.org/changeset/base/279181 Log: sfxge: add indefinite article and update timestamp Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279175 - head/sys/dev/sfxge/common

2015-02-22 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 18:48:54 2015 New Revision: 279175 URL: https://svnweb.freebsd.org/changeset/base/279175 Log: sfxge: using bus_space_*_stream_* API for better portability Host-bus byte order translation is not requred. Submitted by: Artem V. Andreev Artem.Andreev

svn commit: r279147 - head/sys/dev/sfxge

2015-02-21 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 07:20:04 2015 New Revision: 279147 URL: https://svnweb.freebsd.org/changeset/base/279147 Log: sfxge: TxQ block level should use EFX_TXQ_LIMIT as maximum TxQ size Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279141 - in head/sys/dev/sfxge: . common

2015-02-21 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 07:08:57 2015 New Revision: 279141 URL: https://svnweb.freebsd.org/changeset/base/279141 Log: sfxge: style fixes and cleanup Sync endif comment with conditional. BOOTROM and SIENA_BOOTROM are the same, but highlight that it is Siena. Restore commented

svn commit: r279144 - head/sys/dev/sfxge

2015-02-21 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 07:16:11 2015 New Revision: 279144 URL: https://svnweb.freebsd.org/changeset/base/279144 Log: sfxge: packet can't require more than n_dma_seg descriptors plus one Use remaining number of DMA segment instead of maximum number in mapping when checking

svn commit: r279145 - head/sys/dev/sfxge/common

2015-02-21 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 07:17:35 2015 New Revision: 279145 URL: https://svnweb.freebsd.org/changeset/base/279145 Log: sfxge: use macros to acquire and release BAR locks everywhere It was the result of invalid merge of the patch from out-of-tree driver. Sponsored by:

svn commit: r279146 - head/sys/dev/sfxge/common

2015-02-21 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 07:18:38 2015 New Revision: 279146 URL: https://svnweb.freebsd.org/changeset/base/279146 Log: sfxge: use sparse index to retrieve sensor value Submitted by: Andrew Jackson ajackson at solarflare.com Sponsored by: Solarflare Communications, Inc.

svn commit: r279142 - head/sys/dev/sfxge/common

2015-02-21 Thread Andrew Rybchenko
Author: arybchik Date: Sun Feb 22 07:11:55 2015 New Revision: 279142 URL: https://svnweb.freebsd.org/changeset/base/279142 Log: sfxge: synchronize EF10 registers header Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279231 - head/sys/dev/sfxge

2015-02-23 Thread Andrew Rybchenko
Author: arybchik Date: Tue Feb 24 06:09:31 2015 New Revision: 279231 URL: https://svnweb.freebsd.org/changeset/base/279231 Log: sfxge: add put-list high watermark It is interesting to know how long put-list grows. Sponsored by: Solarflare Communications, Inc. Approved by:gnn

svn commit: r279230 - head/sys/dev/sfxge

2015-02-23 Thread Andrew Rybchenko
Author: arybchik Date: Tue Feb 24 06:08:55 2015 New Revision: 279230 URL: https://svnweb.freebsd.org/changeset/base/279230 Log: sfxge: use goto to cleanup to avoid duplicate cleanup code Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279097 - head/sys/dev/sfxge/common

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Sat Feb 21 06:27:45 2015 New Revision: 279097 URL: https://svnweb.freebsd.org/changeset/base/279097 Log: sfxge: check allocations are non-NULL before freeing them Caught when efx_filter_init() failed and called efx_filter_fini() in the teardown path. Submitted

svn commit: r279096 - head/sys/dev/sfxge/common

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Sat Feb 21 06:27:16 2015 New Revision: 279096 URL: https://svnweb.freebsd.org/changeset/base/279096 Log: sfxge: keep fw and driver view of autoneg parameters consistent Previously the driver's view was the expected outcome of any reconfiguration even if that

svn commit: r279098 - head/sys/dev/sfxge/common

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Sat Feb 21 06:28:31 2015 New Revision: 279098 URL: https://svnweb.freebsd.org/changeset/base/279098 Log: sfxge: allow TX and RX queue limits to be changed Before the common code had hard coded limits on the IDs RXQs and TXQs could be created with which were suited

svn commit: r279094 - head/sys/dev/sfxge

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Sat Feb 21 06:24:48 2015 New Revision: 279094 URL: https://svnweb.freebsd.org/changeset/base/279094 Log: sfxge: more accurate calculation of maximum number of TSO segments Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279095 - head/sys/dev/sfxge/common

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Sat Feb 21 06:26:10 2015 New Revision: 279095 URL: https://svnweb.freebsd.org/changeset/base/279095 Log: sfxge: never set RX_DESCQ_EN during self-test We must not enable RX queues with random parameters when they are mapped into a VF with an untrusted driver. It's

svn commit: r279076 - head/sys/dev/sfxge/common

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 20 19:37:10 2015 New Revision: 279076 URL: https://svnweb.freebsd.org/changeset/base/279076 Log: sfxge: regenerate sensor map Add Florence R7 and Modena sensors. Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279078 - head/sys/dev/sfxge/common

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 20 19:42:05 2015 New Revision: 279078 URL: https://svnweb.freebsd.org/changeset/base/279078 Log: sfxge: add assertions that required event handlers are implemented efx_ev_mcdi() does not assert or check that all event handlers it calls are non-null. Add

svn commit: r279077 - in head/sys/dev/sfxge: . common

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 20 19:39:40 2015 New Revision: 279077 URL: https://svnweb.freebsd.org/changeset/base/279077 Log: sfxge: style fixes Use nitem() to get number of array elements. Remove unused define. Use TAB to indent. Sponsored by: Solarflare Communications, Inc.

svn commit: r279080 - head/sys/dev/sfxge

2015-02-20 Thread Andrew Rybchenko
Author: arybchik Date: Fri Feb 20 19:44:02 2015 New Revision: 279080 URL: https://svnweb.freebsd.org/changeset/base/279080 Log: sfxge: reap Tx descriptors on unblock Otherwise when processing finally comes to efx_tx_qdesc_post() it could be insufficient space between reaped and added to

svn commit: r279268 - head/sys/conf

2015-02-24 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 25 06:20:42 2015 New Revision: 279268 URL: https://svnweb.freebsd.org/changeset/base/279268 Log: sfxge: add to config files Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified: head/sys/conf/files Modified:

svn commit: r279266 - head/sys/dev/sfxge/common

2015-02-24 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 25 06:19:00 2015 New Revision: 279266 URL: https://svnweb.freebsd.org/changeset/base/279266 Log: sfxge: correct limit for number of Rx queues Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r279267 - head/sys/dev/sfxge

2015-02-24 Thread Andrew Rybchenko
Author: arybchik Date: Wed Feb 25 06:19:23 2015 New Revision: 279267 URL: https://svnweb.freebsd.org/changeset/base/279267 Log: sfxge: use tab to indent instead of spaces Sponsored by: Solarflare Communications, Inc. Approved by:gnn (mentor) Modified:

svn commit: r280783 - head/sys/dev/sfxge

2015-03-28 Thread Andrew Rybchenko
Author: arybchik Date: Sat Mar 28 10:20:20 2015 New Revision: 280783 URL: https://svnweb.freebsd.org/changeset/base/280783 Log: sfxge: set correct RSS hash type instead of opaque Reviewed by:adrian, gnn Sponsored by: Solarflare Communications, Inc. Differential Revision:

svn commit: r282900 - head/sys/dev/sfxge

2015-05-14 Thread Andrew Rybchenko
Author: arybchik Date: Thu May 14 13:49:00 2015 New Revision: 282900 URL: https://svnweb.freebsd.org/changeset/base/282900 Log: sfxge: IPv4 Tx checksum offload may be disabled in fact Split IFCAP_HWCSUM to IFCAP_RXCSUM and IFCAP_TXCSUM to highlight Tx and Rx. Sponsored by:

svn commit: r282897 - head/sys/dev/sfxge

2015-05-14 Thread Andrew Rybchenko
Author: arybchik Date: Thu May 14 12:59:17 2015 New Revision: 282897 URL: https://svnweb.freebsd.org/changeset/base/282897 Log: sfxge: add missing const qualifier to sfxge_link_mode Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Modified:

svn commit: r282903 - head/sys/dev/sfxge

2015-05-14 Thread Andrew Rybchenko
Author: arybchik Date: Thu May 14 14:16:09 2015 New Revision: 282903 URL: https://svnweb.freebsd.org/changeset/base/282903 Log: sfxge: advertise IPv6 Rx and Tx checksum offload support Tx checksum offload may be enabled/disabled. Sponsored by: Solarflare Communications, Inc. MFC

svn commit: r282899 - head/sys/dev/sfxge

2015-05-14 Thread Andrew Rybchenko
Author: arybchik Date: Thu May 14 13:28:29 2015 New Revision: 282899 URL: https://svnweb.freebsd.org/changeset/base/282899 Log: sfxge: add local variable with Rx descriptor flags Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Modified:

svn commit: r282942 - head/sys/dev/sfxge

2015-05-15 Thread Andrew Rybchenko
Author: arybchik Date: Fri May 15 06:50:59 2015 New Revision: 282942 URL: https://svnweb.freebsd.org/changeset/base/282942 Log: sfxge: split sfxge_tx_qdpl_put() into *_locked() and *_unlocked() It simplifies understanding of the sfxge_tx_packet_add() logic and avoids passing of 'locked'

svn commit: r282940 - head/sys/dev/sfxge

2015-05-15 Thread Andrew Rybchenko
Author: arybchik Date: Fri May 15 06:48:36 2015 New Revision: 282940 URL: https://svnweb.freebsd.org/changeset/base/282940 Log: sfxge: LRO may be done only if checksums are OK Also it is cheaper to check Rx descriptor flags than TCP protocol in IP header. Reviewed by:gnn

svn commit: r282941 - head/sys/dev/sfxge

2015-05-15 Thread Andrew Rybchenko
Author: arybchik Date: Fri May 15 06:49:43 2015 New Revision: 282941 URL: https://svnweb.freebsd.org/changeset/base/282941 Log: sfxge: do not change CSUM_TSO when IFCAP_TSOx is changed It is simply not required since the kernel checks corresponding IFCAP_TSOx capability and CSUM_TSO in

svn commit: r282998 - head/sys/dev/sfxge

2015-05-15 Thread Andrew Rybchenko
Author: arybchik Date: Sat May 16 05:43:20 2015 New Revision: 282998 URL: https://svnweb.freebsd.org/changeset/base/282998 Log: sfxge: move mbuf free to sfxge_if_transmit() It is a preparation to the next patch which will service packet queue even if packet addtion fails. Reviewed

svn commit: r282996 - head/sys/dev/sfxge

2015-05-15 Thread Andrew Rybchenko
Author: arybchik Date: Sat May 16 05:36:40 2015 New Revision: 282996 URL: https://svnweb.freebsd.org/changeset/base/282996 Log: sfxge: support Rx checksum offloads disabling We can't disable it in HW, but we can ignore result. Discard Rx descriptor checksum flags if Rx checksum offload

svn commit: r283000 - head/sys/dev/sfxge

2015-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Sat May 16 06:04:53 2015 New Revision: 283000 URL: https://svnweb.freebsd.org/changeset/base/283000 Log: sfxge: add local variable with changed capabilities mask It is required for the next patch which adds dependency of TSO capabilities from Tx checksum offloads.

svn commit: r282997 - head/sys/dev/sfxge

2015-05-15 Thread Andrew Rybchenko
Author: arybchik Date: Sat May 16 05:37:47 2015 New Revision: 282997 URL: https://svnweb.freebsd.org/changeset/base/282997 Log: sfxge: get rid of locked variable in sfxge_tx_packet_add() Now each branch has one and only one possible TxQ lock state. It simplifies understanding of the

svn commit: r283007 - head/sys/dev/sfxge

2015-05-16 Thread Andrew Rybchenko
Author: arybchik Date: Sat May 16 10:35:30 2015 New Revision: 283007 URL: https://svnweb.freebsd.org/changeset/base/283007 Log: sfxge: avoid usage of ifm_data The driver uses ifm_data to save capabilities mask calculated during initialization when supported phy modes are discovered.

  1   2   3   4   5   6   7   >