Skip to content

fabrics: add NCC to nvmf_disc_eflags#421

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:eflag-1
Jul 11, 2022
Merged

fabrics: add NCC to nvmf_disc_eflags#421
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:eflag-1

Conversation

@martin-belanger
Copy link
Copy Markdown
Contributor

TP8010 defines an additional EFLAG: No CDC Connectivity (NCC)

Signed-off-by: Martin Belanger martin.belanger@dell.com

TP8010 defines an additional EFLAG: No CDC Connectivity (NCC)

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Comment thread src/nvme/fabrics.c
[NVMF_DISC_EFLAGS_DUPRETINFO |
NVMF_DISC_EFLAGS_NCC] = "duplicate discovery information, "
"no cdc connectivity",
[NVMF_DISC_EFLAGS_EPCSD |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should introduce a variant of arg_str which is able to handle non exclusive flags?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that function need to dynamically allocate memory for the string? The problem with that is that users would need to free it. Unless we require users to pass a pre-allocated buffer and make it their responsibility to allocated the right amount of memory.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you are right. I just didn't like the repetition of the strings. Because the interface is fix, we can't change this anyway.

Comment thread src/nvme/fabrics.c
[NVMF_DISC_EFLAGS_DUPRETINFO |
NVMF_DISC_EFLAGS_NCC] = "duplicate discovery information, "
"no cdc connectivity",
[NVMF_DISC_EFLAGS_EPCSD |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you are right. I just didn't like the repetition of the strings. Because the interface is fix, we can't change this anyway.

@igaw igaw merged commit 8005600 into linux-nvme:master Jul 11, 2022
@martin-belanger martin-belanger deleted the eflag-1 branch March 1, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants