Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/iflib_ixlv.h
- This file was copied from sys/dev/ixl/ixlv.h.
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2013-2015, Intel Corporation | Copyright (c) 2013-2017, Intel Corporation | ||||
All rights reserved. | All rights reserved. | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
modification, are permitted provided that the following conditions are met: | modification, are permitted provided that the following conditions are met: | ||||
1. Redistributions of source code must retain the above copyright notice, | 1. Redistributions of source code must retain the above copyright notice, | ||||
this list of conditions and the following disclaimer. | this list of conditions and the following disclaimer. | ||||
Show All 21 Lines | |||||
/*$FreeBSD$*/ | /*$FreeBSD$*/ | ||||
#ifndef _IXLV_H_ | #ifndef _IXLV_H_ | ||||
#define _IXLV_H_ | #define _IXLV_H_ | ||||
#include "ixlv_vc_mgr.h" | #include "ixlv_vc_mgr.h" | ||||
#define IXLV_AQ_MAX_ERR 30 | #define IXLV_AQ_MAX_ERR 200 | ||||
#define IXLV_MAX_INIT_WAIT 120 | |||||
#define IXLV_MAX_FILTERS 128 | #define IXLV_MAX_FILTERS 128 | ||||
#define IXLV_MAX_QUEUES 16 | #define IXLV_MAX_QUEUES 16 | ||||
#define IXLV_AQ_TIMEOUT (1 * hz) | #define IXLV_AQ_TIMEOUT (1 * hz) | ||||
#define IXLV_CALLOUT_TIMO (hz / 50) /* 20 msec */ | #define IXLV_CALLOUT_TIMO (hz / 50) /* 20 msec */ | ||||
#define IXLV_FLAG_AQ_ENABLE_QUEUES (u32)(1 << 0) | #define IXLV_FLAG_AQ_ENABLE_QUEUES (u32)(1 << 0) | ||||
#define IXLV_FLAG_AQ_DISABLE_QUEUES (u32)(1 << 1) | #define IXLV_FLAG_AQ_DISABLE_QUEUES (u32)(1 << 1) | ||||
#define IXLV_FLAG_AQ_ADD_MAC_FILTER (u32)(1 << 2) | #define IXLV_FLAG_AQ_ADD_MAC_FILTER (u32)(1 << 2) | ||||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | struct ixlv_sc { | ||||
bool link_up; | bool link_up; | ||||
u32 link_speed; | u32 link_speed; | ||||
struct mtx mtx; | struct mtx mtx; | ||||
u32 qbase; | u32 qbase; | ||||
u32 admvec; | u32 admvec; | ||||
struct timeout_task timeout; | struct timeout_task timeout; | ||||
#ifdef notyet | |||||
struct task aq_irq; | struct task aq_irq; | ||||
struct task aq_sched; | struct task aq_sched; | ||||
struct taskqueue *tq; | #endif | ||||
struct ixl_vsi vsi; | struct ixl_vsi vsi; | ||||
/* Filter lists */ | /* Filter lists */ | ||||
struct mac_list *mac_filters; | struct mac_list *mac_filters; | ||||
struct vlan_list *vlan_filters; | struct vlan_list *vlan_filters; | ||||
/* Promiscuous mode */ | /* Promiscuous mode */ | ||||
u32 promiscuous_flags; | u32 promiscuous_flags; | ||||
Show All 22 Lines | #endif | ||||
/* Misc stats maintained by the driver */ | /* Misc stats maintained by the driver */ | ||||
u64 watchdog_events; | u64 watchdog_events; | ||||
u64 admin_irq; | u64 admin_irq; | ||||
u8 aq_buffer[IXL_AQ_BUF_SZ]; | u8 aq_buffer[IXL_AQ_BUF_SZ]; | ||||
}; | }; | ||||
#define IXLV_CORE_LOCK_ASSERT(sc) mtx_assert(&(sc)->mtx, MA_OWNED) | |||||
/* | /* | ||||
** This checks for a zero mac addr, something that will be likely | ** This checks for a zero mac addr, something that will be likely | ||||
** unless the Admin on the Host has created one. | ** unless the Admin on the Host has created one. | ||||
*/ | */ | ||||
static inline bool | static inline bool | ||||
ixlv_check_ether_addr(u8 *addr) | ixlv_check_ether_addr(u8 *addr) | ||||
{ | { | ||||
bool status = TRUE; | bool status = TRUE; | ||||
Show All 40 Lines |