per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices. git log --follow -C90% --format=%ad --date default <file> | tail -1 and then pull just the 4 digit year from the result. Intel copyrights were not added to files where Intel either had no contribution ot the contribution lacked substance (ie license header updates, formatting changes, etc). Contribution date used "--follow -C95%" to get the most accurate date. Note that several files in this patch didn't end the license/(c) block with a blank comment line so these were added as the vast majority of files do have this last blank line. Simply there for consistency. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: Id5b7ce4f658fe87132f14139ead58d6e285c04d4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15192 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot
52 lines
1.8 KiB
C
52 lines
1.8 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (C) 2008-2012 Daisuke Aoyama <aoyama@peach.ne.jp>.
|
|
* Copyright (C) 2016 Intel Corporation.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef SPDK_INIT_GRP_H
|
|
#define SPDK_INIT_GRP_H
|
|
|
|
#include "iscsi/iscsi.h"
|
|
#include "iscsi/conn.h"
|
|
|
|
struct spdk_iscsi_initiator_name {
|
|
char name[MAX_INITIATOR_NAME + 1];
|
|
TAILQ_ENTRY(spdk_iscsi_initiator_name) tailq;
|
|
};
|
|
|
|
struct spdk_iscsi_initiator_netmask {
|
|
char mask[MAX_INITIATOR_ADDR + 1];
|
|
TAILQ_ENTRY(spdk_iscsi_initiator_netmask) tailq;
|
|
};
|
|
|
|
struct spdk_iscsi_init_grp {
|
|
int ninitiators;
|
|
TAILQ_HEAD(, spdk_iscsi_initiator_name) initiator_head;
|
|
int nnetmasks;
|
|
TAILQ_HEAD(, spdk_iscsi_initiator_netmask) netmask_head;
|
|
int ref;
|
|
int tag;
|
|
TAILQ_ENTRY(spdk_iscsi_init_grp) tailq;
|
|
};
|
|
|
|
/* SPDK iSCSI Initiator Group management API */
|
|
int iscsi_init_grp_create_from_initiator_list(int tag,
|
|
int num_initiator_names, char **initiator_names,
|
|
int num_initiator_masks, char **initiator_masks);
|
|
int iscsi_init_grp_add_initiators_from_initiator_list(int tag,
|
|
int num_initiator_names, char **initiator_names,
|
|
int num_initiator_masks, char **initiator_masks);
|
|
int iscsi_init_grp_delete_initiators_from_initiator_list(int tag,
|
|
int num_initiator_names, char **initiator_names,
|
|
int num_initiator_masks, char **initiator_masks);
|
|
int iscsi_init_grp_register(struct spdk_iscsi_init_grp *ig);
|
|
struct spdk_iscsi_init_grp *iscsi_init_grp_unregister(int tag);
|
|
struct spdk_iscsi_init_grp *iscsi_init_grp_find_by_tag(int tag);
|
|
void iscsi_init_grp_destroy(struct spdk_iscsi_init_grp *ig);
|
|
int iscsi_parse_init_grps(void);
|
|
void iscsi_init_grps_destroy(void);
|
|
void iscsi_init_grps_info_json(struct spdk_json_write_ctx *w);
|
|
void iscsi_init_grps_config_json(struct spdk_json_write_ctx *w);
|
|
#endif /* SPDK_INIT_GRP_H */
|