1FCOE_CreatePort(3FCOEF)CoE Port Management Library FunctionFsCOE_CreatePort(3FCOE)
2
3
4

NAME

6       FCOE_CreatePort - create an FCoE port
7

SYNOPSIS

9       cc [ flag... ] file... -lfcoe [ library... ]
10       #include <libfcoe.h>
11
12       int FCOE_CreatePort(const char *macLinkName, int portType,
13            struct fcoe_port_wwn pwwn, struct fcoe_port_wwn nwwn,
14            int promiscuous);
15
16

PARAMETERS

18       macLinkName    The  name  of  the  MAC link on which to create the FCoE
19                      port.
20
21
22       portType       This parameter should always be FCOE_PORTTYPE_TARGET.
23
24
25       pwwn           The Port WorldWideName to be used  for  the  FCoE  port.
26                      Fill  the  structure  with  zeros to let the fcoe driver
27                      generate a valid Port WWN from the MAC  address  of  the
28                      underlying NIC hardware.
29
30
31       nwwn           The  Node  WorldWideName  to  be used for the FCoE port.
32                      Fill the structure with zeros to  let  the  fcoe  driver
33                      generate  a  valid  Node WWN from the MAC address of the
34                      underlying NIC hardware.
35
36
37       promiscuous    A non-zero value  to  enable  promiscuous  mode  on  the
38                      underlying  NIC  hardware. A value of 0 indicates use of
39                      the multiple unicast address feature of  the  underlying
40                      NIC hardware.
41
42

DESCRIPTION

44       The  FCOE_CreatePort() function creates an FCoE port over the specified
45       MAC link.
46

RETURN VALUES

48       The following values are returned:
49
50       FCOE_STATUS_ERROR_BUSY
51
52           The fcoe driver is busy and cannot complete the operation.
53
54
55       FCOE_STATUS_ERROR_ALREADY
56
57           An existing FCoE port was found over the specified MAC link.
58
59
60       FCOE_STATUS_ERROR_OPEN_DEV
61
62           Failed to open fcoe device.
63
64
65       FCOE_STATUS_ERROR_WWN_SAME
66
67           The specified Port WWN is same as the specified Node WWN.
68
69
70       FCOE_STATUS_ERROR_MAC_LEN
71
72           MAC link name exceeds the maximum length.
73
74
75       FCOE_STATUS_ERROR_PWWN_CONFLICTED
76
77           The specified Port WWN is already in use.
78
79
80       FCOE_STATUS_ERROR_NWWN_CONFLICTED
81
82           The specified Node WWN is already in use.
83
84
85       FCOE_STATUS_ERROR_NEED_JUMBO_FRAME
86
87           The MTU size of the specified MAC link needs  to  be  increased  to
88           2500 or above.
89
90
91       FCOE_STATUS_ERROR_OPEN_MAC
92
93           Failed to open the specified MAC link.
94
95
96       FCOE_STATUS_ERROR_CREATE_PORT
97
98           Failed to create FCoE port on the specified MAC link.
99
100
101       FCOE_STATUS_OK
102
103           The API call was successful.
104
105

ATTRIBUTES

107       See attributes(5) for descriptions of the following attributes:
108
109
110
111
112       ┌─────────────────────────────┬─────────────────────────────┐
113       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
114       ├─────────────────────────────┼─────────────────────────────┤
115       │Interface Stability          │Committed                    │
116       ├─────────────────────────────┼─────────────────────────────┤
117       │MT-Level                     │Safe                         │
118       └─────────────────────────────┴─────────────────────────────┘
119

SEE ALSO

121       libfcoe(3LIB), attributes(5)
122
123
124
125SunOS 5.11                        1 Apr 2009            FCOE_CreatePort(3FCOE)
Impressum