if_llatbl.h (249327) | if_llatbl.h (250300) |
---|---|
1/* 2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved. 3 * Copyright (c) 2004-2008 Qing Li. All rights reserved. 4 * Copyright (c) 2008 Kip Macy. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved. 3 * Copyright (c) 2004-2008 Qing Li. All rights reserved. 4 * Copyright (c) 2008 Kip Macy. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.h 249327 2013-04-10 08:09:25Z glebius $"); | 28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.h 250300 2013-05-06 16:42:18Z andre $"); |
29 30#ifndef _NET_IF_LLATBL_H_ 31#define _NET_IF_LLATBL_H_ 32 33#include "opt_ofed.h" 34 35#include <sys/_rwlock.h> 36#include <netinet/in.h> 37 38struct ifnet; 39struct sysctl_req; 40struct rt_msghdr; 41struct rt_addrinfo; 42 43struct llentry; 44LIST_HEAD(llentries, llentry); 45 | 29 30#ifndef _NET_IF_LLATBL_H_ 31#define _NET_IF_LLATBL_H_ 32 33#include "opt_ofed.h" 34 35#include <sys/_rwlock.h> 36#include <netinet/in.h> 37 38struct ifnet; 39struct sysctl_req; 40struct rt_msghdr; 41struct rt_addrinfo; 42 43struct llentry; 44LIST_HEAD(llentries, llentry); 45 |
46extern struct rwlock_padalign lltable_rwlock; | 46extern struct rwlock lltable_rwlock; |
47#define LLTABLE_RLOCK() rw_rlock(&lltable_rwlock) 48#define LLTABLE_RUNLOCK() rw_runlock(&lltable_rwlock) 49#define LLTABLE_WLOCK() rw_wlock(&lltable_rwlock) 50#define LLTABLE_WUNLOCK() rw_wunlock(&lltable_rwlock) 51#define LLTABLE_LOCK_ASSERT() rw_assert(&lltable_rwlock, RA_LOCKED) 52 53/* 54 * Code referencing llentry must at least hold --- 163 unchanged lines hidden --- | 47#define LLTABLE_RLOCK() rw_rlock(&lltable_rwlock) 48#define LLTABLE_RUNLOCK() rw_runlock(&lltable_rwlock) 49#define LLTABLE_WLOCK() rw_wlock(&lltable_rwlock) 50#define LLTABLE_WUNLOCK() rw_wunlock(&lltable_rwlock) 51#define LLTABLE_LOCK_ASSERT() rw_assert(&lltable_rwlock, RA_LOCKED) 52 53/* 54 * Code referencing llentry must at least hold --- 163 unchanged lines hidden --- |