History

IB/core: Rename 'flow' structs to match other uverbs structs

Commit 436f2ad05a0b ("IB/core: Export ib_create/destroy_flow through uverbs") added public data structures to support receive flow steering. The new structs are not following the 'uverbs' pattern: they're lacking the common prefix 'ib_uverbs'. This patch replaces ib_kern prefix by ib_uverbs.

Yann Droneaud committed 13 years ago

Commit d82693d1 parent f8848272 files · +25 −25Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/ib_user_verbs.h+18−18
@@ -701,61 +701,61 @@ struct ib_uverbs_detach_mcast { · 700 unmodified lines
701701 };
702702
703703 #ifdef CONFIG_INFINIBAND_EXPERIMENTAL_UVERBS_FLOW_STEERING
704−struct ib_kern_eth_filter {
704+struct ib_uverbs_eth_filter {
705705 __u8 dst_mac[6];
706706 __u8 src_mac[6];
707707 __be16 ether_type;
708708 __be16 vlan_tag;
709709 };
710710
711−struct ib_kern_spec_eth {
711+struct ib_uverbs_spec_eth {
712712 __u32 type;
713713 __u16 size;
714714 __u16 reserved;
715− struct ib_kern_eth_filter val;
716− struct ib_kern_eth_filter mask;
715+ struct ib_uverbs_eth_filter val;
716+ struct ib_uverbs_eth_filter mask;
717717 };
718718
719−struct ib_kern_ipv4_filter {
719+struct ib_uverbs_ipv4_filter {
720720 __be32 src_ip;
721721 __be32 dst_ip;
722722 };
723723
724−struct ib_kern_spec_ipv4 {
724+struct ib_uverbs_spec_ipv4 {
725725 __u32 type;
726726 __u16 size;
727727 __u16 reserved;
728− struct ib_kern_ipv4_filter val;
729− struct ib_kern_ipv4_filter mask;
728+ struct ib_uverbs_ipv4_filter val;
729+ struct ib_uverbs_ipv4_filter mask;
730730 };
731731
732−struct ib_kern_tcp_udp_filter {
732+struct ib_uverbs_tcp_udp_filter {
733733 __be16 dst_port;
734734 __be16 src_port;
735735 };
736736
737−struct ib_kern_spec_tcp_udp {
737+struct ib_uverbs_spec_tcp_udp {
738738 __u32 type;
739739 __u16 size;
740740 __u16 reserved;
741− struct ib_kern_tcp_udp_filter val;
742− struct ib_kern_tcp_udp_filter mask;
741+ struct ib_uverbs_tcp_udp_filter val;
742+ struct ib_uverbs_tcp_udp_filter mask;
743743 };
744744
745−struct ib_kern_spec {
745+struct ib_uverbs_spec {
746746 union {
747747 struct {
748748 __u32 type;
749749 __u16 size;
750750 __u16 reserved;
751751 };
752− struct ib_kern_spec_eth eth;
753− struct ib_kern_spec_ipv4 ipv4;
754− struct ib_kern_spec_tcp_udp tcp_udp;
752+ struct ib_uverbs_spec_eth eth;
753+ struct ib_uverbs_spec_ipv4 ipv4;
754+ struct ib_uverbs_spec_tcp_udp tcp_udp;
755755 };
756756 };
757757
758−struct ib_kern_flow_attr {
758+struct ib_uverbs_flow_attr {
759759 __u32 type;
760760 __u16 size;
761761 __u16 priority;
@@ -774,7 +774,7 @@ struct ib_uverbs_create_flow { · 12 unmodified lines
774774 __u32 reserved;
775775 __u64 response;
776776 __u32 qp_handle;
777− struct ib_kern_flow_attr flow_attr;
777+ struct ib_uverbs_flow_attr flow_attr;
778778 };
779779
780780 struct ib_uverbs_create_flow_resp {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t