Patents
US 12,499,073 B2#154925012 Most CitedActiveUnited States (USPTO)Utility

Network interface device

1Forward Citations (#154925012 Global)
1.0/yrCitation Velocity (#154925012 Global)
0.17Citation PageRank (#154925012 Global)
9Prior Art Cited
19Claims (2 Indep. · 17 Dep.)
6Drawings / Sheets

Abstract

A network interface device comprises at least one processor configured to validate at least a part of a context associated with a queue pair, the context being fetched from a memory on a host device.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 1.

Claims (19 — 2 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A network interface device comprising: at least one processor configured to: fetch a context associated with a queue pair from a memory on a host device; and validate at least a part of the context associated with the queue pair based on confirming a value of a field of the context is outside an allowed range of values for that field and one of: update the value of the field of the context to a value in the allowed range based on confirming that the value of the field is outside the allowed range of values for that field; or use a value in the allowed range based on confirming that the value of the field of the context is outside the allowed range of values for that field instead of the value in the field.

  2. Claim 2Depends on #1

    The network interface device as claimed in claim 1, wherein the at least one processor is configured to validate at least a part of the context by determining if the respective part of the context contains one or more invalid values.

  3. Claim 3Depends on #2

    The network interface device as claimed in claim 2, wherein the at least one processor is configured to replace one or more invalid values in the context with one or more valid values when it is determined that the part of the context contains invalid values.

  4. Claim 4Depends on #3

    The network interface device as claimed in claim 3, wherein the at least one processor is configured to replace one or more invalid values in the context with one or more values associated with a function with which the queue pair is associated.

  5. Claim 5Depends on #4

    The network interface device as claimed in claim 4, wherein the function comprises a virtual machine associated with the queue pair.

  6. Claim 6Depends on #4

    The network interface device as claimed in claim 4, wherein the function comprises an interface associated with the queue pair.

  7. Claim 7Depends on #2

    The network interface device as claimed in claim 2, wherein the at least one processor is configured use one or more valid values, when it is determined that the part of the context contains one or more invalid values, instead of the invalid values.

  8. Claim 8Depends on #1

    The network interface device as claimed in claim 1, wherein the at least one processor is configured to validate at least a part of the context by determining if one or more values in the context meet one or more criteria.

  9. Claim 9Depends on #8

    The network interface device as claimed in claim 8, wherein determining if one or more values in the context meet one or more criteria comprises determining if a queue pair is permitted to access a resource referenced in the queue pair context.

  10. Claim 10Depends on #8

    The network interface device as claimed in claim 8, wherein determining if one or more values in the context meet one or more criteria comprises determining if a resource referenced in the queue pair context is owned by a function which is associated with the queue pair.

  11. Claim 11Depends on #8

    The network interface device as claimed in claim 8, wherein the at least one processor is configured to abort an operation associated with the queue pair context when the one or more criteria are not met.

  12. Claim 12Depends on #8

    The network interface device as claimed in claim 8, wherein determining if one or more values in the context meet one or more criteria comprises determining if a value of a field of the context is outside an allowed range of values for that field.

  13. Claim 13Independent Claim

    A method comprising: fetching a context associated with a queue pair from a memory on a host device; and validating at least a part of the context associated with the queue pair based on confirming a value of a field of the context is outside an allowed range of values for that field and one of: updating the value of the field of the context to a value in the allowed range based on confirming that the value of the field is outside the allowed range of values for that field; or using a value in the allowed range based on confirming that the value of the field of the context is outside the allowed range of values for that field instead of the value in the field.

  14. Claim 14Depends on #13

    The method as claimed in claim 13, comprising validating at least a part of the context by determining if the respective part of the context contains one or more invalid values.

  15. Claim 15Depends on #14

    The method as claimed in claim 14, comprising replacing one or more invalid values in the context with one or more valid values when it is determined that the part of the context contains invalid values.

  16. Claim 16Depends on #13

    The method as claimed in claim 13, comprising validating at least a part of the context by determining if one or more values in the context meet one or more criteria.

  17. Claim 17Depends on #16

    The method as claimed in claim 16, wherein determining if one or more values in the context meet one or more criteria comprises determining if a value of a field of the context is outside an allowed range of values for that field.

  18. Claim 18Depends on #1

    The network interface device as claimed in claim 1, wherein the validating is based on confirming that a given resource referenced by the context is owned by an interface that owns the queue pair.

  19. Claim 19Depends on #1

    The network interface device as claimed in claim 1, wherein the context comprises a pointer to an event queue, wherein the validating is based on confirming that the queue pair and the event queue are owned by a common function.

Technical Overview & Description

TECHNICAL FIELD This application relates to a network interface device. BACKGROUND Network interface devices (e.g., a network interface card/controller (NIC) or SmartNIC) are known and are typically used to provide an interface between a computing device and a network. SUMMARY According to an aspect, there is provided a network interface device comprising: at least one processor configured to fetch a context associated with a queue pair from a memory on a host device and validate at least a part of the context associated with the queue pair. The at least one processor may be configured to validate at least a part of the context by determining if the respective part of the context contains one or more invalid values. The at least one processor may be configured to replace one or more invalid values in the context with one or more valid values when it is determined that the part of the context contains invalid values. The at least one processor may be configured to replace one or more invalid values in the context with one or more values associated with a function with which the queue pair is associated. The function may comprise a virtual machine associated with the queue pair. The function may comprise an interface associated with the queue pair. The at least one processor may be configured to use one or more valid values, when it is determined that the part of the context contains one or more invalid values, instead of the invalid values. The at least one processor may be configured to validate at least a part of the context by determining if one or more values in the context meet one or more criteria. Determining if one or more values in the context meet one or more criteria may comprise determining if a queue pair is permitted to access a resource referenced in the queue pair context. Determining if one or more values in the context meet one or more criteria may comprise determining if a resource referenced in the queue pair context is owned by a function which i

Cited By — Indexed Forward Citations (1 of 1 total)