US 11,888,737 B1
Implementing network function logic in a virtual switch
Christophe Fontaine, Puteaux (FR); Saravanan K R, Bangalore (IN); David Marchand, Puteaux (FR); and Maxime Coquelin, Puteaux (FR)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on Jul. 29, 2022, as Appl. No. 17/877,184.
Int. Cl. H04L 45/586 (2022.01); H04L 45/00 (2022.01); H04L 49/00 (2022.01)
CPC H04L 45/586 (2013.01) [H04L 45/566 (2013.01); H04L 49/70 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
receiving, at a network function, a packet from a virtual connection device, wherein the network function and the virtual connection device reside on a same host compute node and are communicatively coupled by a virtual network, and wherein the packet comprises a header and a payload and is part of a packet session comprising a plurality of packets;
identifying, by the network function, an action to perform on the packet and modifying the header based on the action to create a modified packet with a modified header;
copying the modified packet from the network function to the virtual connection device for the virtual connection device to perform the action on the modified packet based on the modified header; and
sending, by a processing device, instructions from the network function to the virtual connection device to configure the virtual connection device to perform the action on subsequent packets of the packet session, wherein the virtual connection device performs the action on the subsequent packets without copying the subsequent packets to the network function.