aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-infiniband.h
AgeCommit message (Collapse)AuthorFilesLines
2017-06-15infiniband: add RETH remote key to infinibandinfo structNitzan Carmi1-0/+1
RETH remote key might be needed in protocol's dissectors. Remote access key is shared out of band usually via RDMA send operation. This key sharing is upper layer protocol specific and protocol dissector knows about the key. infiniband layer do not know about which rkey is shared. For protocol dissectors to associate data packets with past command packets, infiniband needs to provide the rkey. Change-Id: I927116d649ed2b01c388afbcdb924cb7e5128e12 Signed-off-by: Nitzan Carmi <nitzanc@mellanox.com> Reviewed-by: Parav Pandit <parav@mellanox.com> Tested-by: Nitzan Carmi <nitzanc@mellanox.com> Reviewed-on: https://code.wireshark.org/review/22123 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-12-19Make more infiniband subdissectors heuristic.Michael Mann1-0/+1
1. Convert the Mellanox encapsulation header into a heuristic dissector. 2. Convert EtherType header dissection into a heuristic dissector. 3. Convert "heuristic preferences" to use deprecated_heur_dissector_pref. Ping-Bug: 5061 Ping-Bug: 2672 Change-Id: Iabcac1af8e07f3f6f25f825ed56b2036c3285783 Reviewed-on: https://code.wireshark.org/review/19317 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-12-03packet-infiniband: Fixed duplicate conversation entriesParav Pandit1-0/+4
1. Fixed find_conversation for PT_IBQP to not lookup in reverse direction when all searches fail. This is required, because there could be valid different connection in reverse direction which mistakenly gets updated for non template cases. 2. Added support for having MAD data for upper level dissectors to process during RC packet processing. This is required because connection options are negotiated out of band using this CM exchanges (unlike in band TCP options). 3. Moved creating unidirectional connections when actually MAD packets are processed. Previously client-to-server unidirectional conversation was created when CM_RSP stage, where MAD Data of CM_REQ packet is inaccessible. 4. Fixed creating multiple conversations with same address property by eliminating create_conv_and_add_proto_data during RTU stage, which was incorrect. Now they are created during REQ and RSP frame processing. (Instead of RSP and RTU processing). 5. Added support for creating bidirectional connection that ULP can refer. This is required to keep track of oustanding transactions on a connection (requests and responses). Bug: 11363 Change-Id: I32ea084a581a58efbc16dbb7a3e267c82622c50c Tested-by: paravpandit@yahoo.com Reviewed-on: https://code.wireshark.org/review/18982 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-11-02packet-infiniband: Fixed IP based connections & other minor fixesParav Pandit1-0/+10
1. Fixed setting right address type instead of AT_IB for RoCE and RRoCE depending on address type given by pinfo where address type would be IPv4 or IPV6. Fail to do so was resulting into infiniband dissector adding conversation info based on AT_IB type vs payload dissectors dissecting based on pinfo. Fixing this allows to add/search based on right address type. (Tested for Infiniband and RRoCE) 2. Added support to pass already parsed CM attribute id from infiniand to other mad private data dissectors so that right dissection of private data can be done based on CM attribute id (message type). Moved CM attribute id definitions to header file so that private data dissectors based on CM attribute id can reuse these values without duplicate defines. (Tested for Infiniband and RRoCE) 3. Added direction client to server/server to client, (active/passive) to conversation_data for payload dissectors which cannot dissect only based on payload content without knowing the direction. (Tested for RRoCE) 4. Fixed IP CM to claim all 92 bytes of private data (including consumer private data), instead of just 36 bytes of header because its part of IP CM private data. (Tested for Infiniband and RRoCE) 5. Fixed MAD header to claim all 232 (256-24) bytes of data as it belongs to it in the tree. (Tested for Infiniband and RRoCE) 6. Fixed getting ip version by performing AND operation first to extract IP version field. (Tested for RRoCE-IPV4 and Infiniband) Change-Id: I37daca6a089784b61c25e10cdc8f3cf028ca8c58 Tested-by: paravpandit@yahoo.com Reviewed-on: https://code.wireshark.org/review/18573 Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-09-29Add editor modelines; fix indentation as needed.Bill Meier1-0/+13
Change-Id: I1ad94654343e5a018a0b3159481d45ffb3a91263 Reviewed-on: https://code.wireshark.org/review/4363 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-08-22packet-infiniband: added support for Mellanox DC transport typeWasim Abu Moch1-0/+1
*marked parse_DCCETH() function's unesed parameters with _U_ macro instead of (void) */ *Added few whitespaces (new lines), were mistakenly removed"* Adding minimal support for Mellanox DC transport type which replaces RD (RD isn't implemented in any HW yet). It's minimal in the sense of skipping new headers without parsing/showing them, this allows at least to keep correct IB packet parsing due to the new added header for this TS. (in this stage we can't expose the protocol details including it's header layout) Change-Id: I6cffa6497632ba19a6f9ec60a4f68da60b28e821 Reviewed-on: https://code.wireshark.org/review/3719 Reviewed-by: Evan Huus <eapache@gmail.com> Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-26packet-infiniband: pass a struct infinibandinfo to subdissectorsStefan Metzmacher1-0/+82
Change-Id: I187a1a91f34b1b758cad03bd9902ba132272cd3a Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-on: https://code.wireshark.org/review/357 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2010-11-17From Slava via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5335 :Jeff Morriss1-1379/+5
This patch adds to Wireshark the ability to dissect Infiniband SDP (Socket Direct Protocol) and CM MADs traffic. It also contains various other bug-fixes and enhancements. SDP traffic can be identified automatically (analyzing SDP CM MADs) or manually. SDP, or Sockets Direct Protocol, is a protocol developed by the Infiniband Trade Association which enables existing socket-based applications to transparently utilize the Infiniband capabilities. This patch is submitted on behalf of Mellanox Technologies Ltd. svn path=/trunk/; revision=34918
2010-08-16From Slava:Anders Broman1-0/+28
This patch adds to the Infiniband dissector the ability to dissect EoIB (Ethernet-over-Infiniband) traffic which uses Mellanox Technologies Ltd's standard for encapsulating Ethernet traffic inside Infiniband packets. This patch is submitted on behalf of Mellanox Technologies Ltd. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5061 svn path=/trunk/; revision=33808
2010-08-03From Slava:Anders Broman1-0/+3
The Infiniband dissector currently uses a heuristic where it attempts to parse IBA payloads as if they contained encapsulated traffic with an Ethertype header. While a relatively common occurrence and thus a fairly useful feature, this heuristic in many cases causes false-positives which invoke unneeded dissectors and generate noise in the form of unjustified "malformed packet" errors these dissectors cause. This patch adds a checkbox to the Infiniband preferences menu that allows users to disable this feature if desired. The option remains on by default. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5062 svn path=/trunk/; revision=33703
2010-08-03From Slava:Anders Broman1-1/+3
Infiniband RoCE dissection. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5060 svn path=/trunk/; revision=33702
2010-05-03This patch is submitted on behalf of Mellanox Technologies:Anders Broman1-0/+5
Printing to the source and destination columns by the Infiniband dissector is not working properly. This patch changes the printing code to perform the correct operations, so that the source and destination information properly appears in the columns. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4739 svn path=/trunk/; revision=32648
2010-05-03This patch is submitted on behalf of Mellanox Technologies:Anders Broman1-1/+50
This patch adds code for correct dissection of two performance management datagrams to the Infiniband dissector. The added MADs are PortCounters and PortCounters Extended. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4741 svn path=/trunk/; revision=32647
2010-05-03This patch is submitted on behalf of Mellanox Technologies:Anders Broman1-0/+2
This patch fixes a bug in Infiniband dissection where the offset was incorrectly incremented in some cases leading to attempt to read past the end of the tvb and a MALFORMED-PACKET error being issued. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4738 svn path=/trunk/; revision=32645
2010-05-03This patch is submitted on behalf of Mellanox Technologies:Anders Broman1-2/+4
This patch fixes the code to correctly identify MAD packets by their source and destination queue pairs. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4737 svn path=/trunk/; revision=32644
2010-04-08From Stephen Donnelly:Anders Broman1-0/+18
InfiniBand Link Packet (flow control) dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4656 svn path=/trunk/; revision=32425
2009-07-07From Kovarththanan Rajaratnam:Stig Bjørlykke1-1714/+0
Move hf/ett definitions from packet-infiniband.h -> packet-infiniband.c to align it with the rest of the bunch svn path=/trunk/; revision=28979
2009-06-24From Kovarththanan Rajaratnam:Stig Bjørlykke1-66/+66
More hf_register_info related cleanup. svn path=/trunk/; revision=28832
2009-04-21infiniband.h: Verify addt'l fields against spec; reformatBill Meier1-1635/+2074
svn path=/trunk/; revision=28112
2009-04-21infiniband: Fix various issues mostly relating to protocol field display:Bill Meier1-100/+104
- Conform display of fields to Infiniband spec (1.2.1): E.G.: use correct bitmasks in hf[]; (The verification/correction process is not complete: see packet-inifiniband.h); - Comment out unused hf[] & related elements; - hf[]: FT_BOOLEAN entries with bitmask: "BASE" should be "bitwidth of parent bitfield"; - packet-infiniband.c: Use consistent indentation; - Move proto_register & proto_reg_handoff to the end of the file. svn path=/trunk/; revision=28105
2009-04-21Constify some more value_strings.Jaap Keuter1-1/+1
svn path=/trunk/; revision=28102
2009-02-22Incorporate plugin dissector into build in collection.Jaap Keuter1-0/+2574
svn path=/trunk/; revision=27502