Cessna 170
Flight Crew Private; Flight Crew Instrument
Flight Crew Last 90 Days 25; Flight Crew Total 6801; Flight Crew Type 5300
Distraction; Time Pressure; Situational Awareness
Airspace Violation All Types; Conflict NMAC; Deviation / Discrepancy - Procedural FAR; Deviation / Discrepancy - Procedural Published Material / Policy
Air Traffic Control Issued Advisory / Alert; Flight Crew Took Evasive Action
Airspace Structure; Environment - Non Weather Related
While flying to ZZZ; the FUL Tower said to either climb or descend to avoid a medfly aircraft at my then altitude of 2;000 feet MSL. I would soon be passing over hills so I chose to climb to avoid the medfly aircraft. I leveled off for a few seconds at 2;400 MSL as I saw the medfly below and reported it to FUL Tower and descended.I noticed that I was under the south east corner of the LAX class B. I decided to report this as I usually stay at 2;000 MSL in this area and I do not know what the computers said my altitude was. If there was any intrusion into class B it was inadvertent due to towers request I avoid the other aircraft and my eyes were out the window looking for the other aircraft. I had my ForeFlight display on my mini but was looking for the actual aircraft.
C170 pilot reported possible Class B violation while avoiding another aircraft.