/******************************************************************************
*******************************************************************************
**
**  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
**  Copyright (C) 2004-2011 Red Hat, Inc.  All rights reserved.
**
**  This copyrighted material is made available to anyone wishing to use,
**  modify, copy, or redistribute it subject to the terms and conditions
**  of the GNU General Public License v.2.
**
*******************************************************************************
******************************************************************************/

#ifndef __CONFIG_DOT_H__
#define __CONFIG_DOT_H__

struct dlm_config_node {
	int nodeid;
	int weight;
	int new;
	uint32_t comm_seq;
};

#define DLM_MAX_ADDR_COUNT 3

struct dlm_config_info {
	int ci_tcp_port;
	int ci_buffer_size;
	int ci_rsbtbl_size;
	int ci_recover_timer;
	int ci_toss_secs;
	int ci_scan_secs;
	int ci_log_debug;
	int ci_log_info;
	int ci_protocol;
	int ci_timewarn_cs;
	int ci_waitwarn_us;
	int ci_new_rsb_count;
	int ci_recover_callbacks;
	char ci_cluster_name[DLM_LOCKSPACE_LEN];
};

extern struct dlm_config_info dlm_config;

int dlm_config_init(void);
void dlm_config_exit(void);
int dlm_config_nodes(char *lsname, struct dlm_config_node **nodes_out,
		     int *count_out);
int dlm_comm_seq(int nodeid, uint32_t *seq);
int dlm_our_nodeid(void);
int dlm_our_addr(struct sockaddr_storage *addr, int num);

#endif				/* __CONFIG_DOT_H__ */

le class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/security/keys/trusted.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/security/keys/trusted.c'>
<input type='hidden' name='id' value='b4cfe3971f6eab542dd7ecc398bfa1aeec889934'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/security?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>security</a>/<a href='/cgit.cgi/linux/net-next.git/commit/security/keys?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>keys</a>/<a href='/cgit.cgi/linux/net-next.git/commit/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>trusted.c</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='b4cfe3971f6eab542dd7ecc398bfa1aeec889934'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Jack Morgenstein &lt;jackm@dev.mellanox.co.il&gt;</td><td class='right'>2017-01-15 20:15:00 +0200</td></tr>
<tr><th>committer</th><td>Doug Ledford &lt;dledford@redhat.com&gt;</td><td class='right'>2017-01-27 14:29:04 -0500</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>b4cfe3971f6eab542dd7ecc398bfa1aeec889934</a> (<a href='/cgit.cgi/linux/net-next.git/patch/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>c7ad49d05da0535170c8e7710cd44ae1cecc271f</a> /<a href='/cgit.cgi/linux/net-next.git/tree/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>security/keys/trusted.c</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/security/keys/trusted.c?id=2d4b21e0a2913612274a69a3ba1bfee4cffc6e77'>2d4b21e0a2913612274a69a3ba1bfee4cffc6e77</a> (<a href='/cgit.cgi/linux/net-next.git/diff/security/keys/trusted.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934&amp;id2=2d4b21e0a2913612274a69a3ba1bfee4cffc6e77'>diff</a>)</td></tr></table>
<div class='commit-subject'>RDMA/cma: Fix unknown symbol when CONFIG_IPV6 is not enabled</div><div class='commit-msg'>If IPV6 has not been enabled in the underlying kernel, we must avoid
calling IPV6 procedures in rdma_cm.ko.

This requires using "IS_ENABLED(CONFIG_IPV6)" in "if" statements
surrounding any code which calls external IPV6 procedures.

In the instance fixed here, procedure cma_bind_addr() called
ipv6_addr_type() -- which resulted in calling external procedure
__ipv6_addr_type().

Fixes: 6c26a77124ff ("RDMA/cma: fix IPv6 address resolution")
Cc: &lt;stable@vger.kernel.org&gt; # v4.2+
Cc: Spencer Baugh &lt;sbaugh@catern.com&gt;
Signed-off-by: Jack Morgenstein &lt;jackm@dev.mellanox.co.il&gt;
Reviewed-by: Moni Shoua &lt;monis@mellanox.com&gt;
Signed-off-by: Leon Romanovsky &lt;leon@kernel.org&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>Diffstat</a> (limited to 'security/keys/trusted.c')</div><table summary='diffstat' class='diffstat'>