freebsd-skq/sys/dev/ixgbe
erj 649e8ad140 ix(4): Run {mod,msf,mbx,fdir,phy}_task in if_update_admin_status
From Piotr:

This patch introduces adapter->task_requests register responsible for
recording requests for mod_task, msf_task, mbx_task, fdir_task and
phy_task calls. Instead of enqueueing these tasks with
GROUPTASK_ENQUEUE, handlers will be called directly from
ixgbe_if_update_admin_status() while holding ctx lock.

SIOCGIFXMEDIA ioctl() call reads adapter->media list. The list is
deleted and rewritten in ixgbe_handle_msf() task without holding ctx
lock. This change is needed to maintain data coherency when sharing
adapter info via ioctl() calls.

Patch co-authored by Krzysztof Galazka <krzysztof.galazka@intel.com>.

PR:		221317
Submitted by:	Piotr Pietruszewski <piotr.pietruszewski@intel.com>
Reviewed by:	sbruno@, IntelNetworking
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D18468
2019-01-31 21:44:33 +00:00
..
if_bypass.c
if_fdir.c
if_ix.c ix(4): Run {mod,msf,mbx,fdir,phy}_task in if_update_admin_status 2019-01-31 21:44:33 +00:00
if_ixv.c Make iflib a loadable module. 2019-01-31 19:05:56 +00:00
if_sriov.c
ix_txrx.c intel iflib drivers: correct initialization of tx_cidx_processed 2019-01-24 01:03:00 +00:00
ixgbe_82598.c
ixgbe_82598.h
ixgbe_82599.c ixgbe: this statement may fall through warnings with gcc 2019-01-19 20:45:41 +00:00
ixgbe_82599.h
ixgbe_api.c
ixgbe_api.h
ixgbe_bypass.h
ixgbe_common.c ixgbe: this statement may fall through warnings with gcc 2019-01-19 20:45:41 +00:00
ixgbe_common.h
ixgbe_dcb_82598.c
ixgbe_dcb_82598.h
ixgbe_dcb_82599.c
ixgbe_dcb_82599.h
ixgbe_dcb.c
ixgbe_dcb.h
ixgbe_fdir.h
ixgbe_features.h
ixgbe_mbx.c
ixgbe_mbx.h
ixgbe_osdep.c
ixgbe_osdep.h
ixgbe_phy.c
ixgbe_phy.h
ixgbe_rss.h
ixgbe_sriov.h
ixgbe_type.h ix(4): Run {mod,msf,mbx,fdir,phy}_task in if_update_admin_status 2019-01-31 21:44:33 +00:00
ixgbe_vf.c
ixgbe_vf.h
ixgbe_x540.c
ixgbe_x540.h
ixgbe_x550.c
ixgbe_x550.h
ixgbe.h ix(4): Run {mod,msf,mbx,fdir,phy}_task in if_update_admin_status 2019-01-31 21:44:33 +00:00